#27217B#27217B

#27217B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.146 H 277.4°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#27217B
RGBrgb(39, 33, 123)
HSLhsl(244, 58%, 31%)
HSVhsv(244, 73%, 48%)
CMYKcmyk(68.3%, 73.2%, 0%, 51.8%)
CIE-LABlab(19.84, 32.31, -50.06)
CIE-LCHlch(19.84, 59.58, 302.84°)
OKLaboklab(32.27% 0.0187 -0.1445)
OKLCHoklch(32.27% 0.146 277.4)
XYZxyz(4.9545, 2.9487, 19.0431)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27217B #757B21
analogous
#21487B #27217B #54217B
triadic
#27217B #7B2721 #217B27
tetradic
#27217B #7B2148 #757B21 #217B54
square
#27217B #7B2148 #757B21 #217B54
split-complementary
#27217B #7B5421 #487B21
monochromatic
#08071A #18144B #27217B #362EAB #5148CE

Accessibility & contrast

On white

13.21
#27217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#27217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27217B
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27217B#FFFFFF#000000##FFFFFF
##27217B1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002C79
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #27217b;
/* rgb */ color: rgb(39, 33, 123);
/* oklch */ color: oklch(32.3% 0.146 277.4);
Tailwind
colors: {
  custom: {
    50: '#6d5da2',
    500: '#27217b',
    950: '#000000',
  },
}
SCSS
$custom: #27217b;
$custom-light: #6d5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#27217b",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 244,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3227,
    "c": 0.14573,
    "h": 277.4
  },
  "luminance": 0.02949
}

Semantic roles & 50–950 ramp

primary
#27217B
secondary
#A7AE4A
accent
#E147D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #27217B

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

Preview Lab → · Contrast checker → · Palette generator →

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