#27217E#27217E

#27217E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.150 H 277.0°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#27217E
RGBrgb(39, 33, 126)
HSLhsl(244, 58%, 31%)
HSVhsv(244, 74%, 49%)
CMYKcmyk(69%, 73.8%, 0%, 50.6%)
CIE-LABlab(20.14, 33.35, -51.46)
CIE-LCHlch(20.14, 61.32, 302.95°)
OKLaboklab(32.58% 0.0181 -0.1486)
OKLCHoklch(32.58% 0.15 277)
XYZxyz(5.1452, 3.0250, 20.0473)
Luminance0.0302 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27217E #787E21
analogous
#21497E #27217E #55217E
triadic
#27217E #7E2721 #217E27
tetradic
#27217E #7E2149 #787E21 #217E55
square
#27217E #7E2149 #787E21 #217E55
split-complementary
#27217E #7E5521 #497E21
monochromatic
#09081D #18144E #27217E #362EAE #524AD0

Accessibility & contrast

On white

13.08
#27217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#27217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27217E
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27217E#FFFFFF#000000##FFFFFF
##27217E1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #27217e;
/* rgb */ color: rgb(39, 33, 126);
/* oklch */ color: oklch(32.6% 0.150 277.0);
Tailwind
colors: {
  custom: {
    50: '#6e5da4',
    500: '#27217e',
    950: '#000000',
  },
}
SCSS
$custom: #27217e;
$custom-light: #6e5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#27217e",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 243.871,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32582,
    "c": 0.14973,
    "h": 277
  },
  "luminance": 0.03025
}

Semantic roles & 50–950 ramp

primary
#27217E
secondary
#AAB14A
accent
#E246D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #27217E

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#27217E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva