#271663

A color in the Violet family

#271663 is a color in the Violet family: RGB(39, 22, 99), HSL(253°, 64%, 24%), CMYK(61%, 78%, 0%, 61%). Closest named color: midnightblue. Contrast is 15.2:1 on white and 1.38:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#271663
RGBrgb(39 22 99)
RGB (legacy)rgb(39, 22, 99)
RGB %rgb(15% 9% 39%)
HSLhsl(253 64% 24%)
HSV / HSBhsv(253, 78%, 39%)
HWBhwb(253 9% 61%)
CMYKcmyk(61%, 78%, 0%, 61%)
CIELAB (D50)lab(14.3 26.27 -43.37)
LCHlch(14.3 50.7 301.2)
OKLaboklab(0.2807 0.0326 -0.1222)
OKLCHoklch(0.2807 0.1265 284.94)
Decimal2561635

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 3.4
Closest web-safe color#330066
Hue253°
Saturation (HSL / HSV)64% / 78%
Lightness (HSL)24%
Brightness or Value (HSV)39%
Luminance (Rec.601 / Rec.709)14% / 12%
Relative luminance (WCAG)0.0191
Red / Green / Blue39 / 22 / 99

WCAG 2.2 Contrast Ratio

On White (#ffffff)
15.20:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.38:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 101.6 / 0 · As background with white / black text: Lc -104.4 / 0

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #271663;
  --color-brand-oklch: oklch(28.07% 0.1265 284.94);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(39 22 99 / 50%); }
/* Tailwind CSS */
<div class="bg-[#271663] text-[#271663] border-[#271663]">