#27218B#27218B

#27218B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.167 H 275.3°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#27218B
RGBrgb(39, 33, 139)
HSLhsl(243, 62%, 34%)
HSVhsv(243, 76%, 55%)
CMYKcmyk(71.9%, 76.3%, 0%, 45.5%)
CIE-LABlab(21.52, 37.81, -57.39)
CIE-LCHlch(21.52, 68.73, 303.38°)
OKLaboklab(33.97% 0.0155 -0.1659)
OKLCHoklch(33.97% 0.167 275.3)
XYZxyz(6.0392, 3.3826, 24.7557)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27218B #858B21
analogous
#21508B #27218B #5C218B
triadic
#27218B #8B2721 #218B27
tetradic
#27218B #8B2150 #858B21 #218B5C
square
#27218B #8B2150 #858B21 #218B5C
split-complementary
#27218B #8B5C21 #508B21
monochromatic
#0B0A28 #19155A #27218B #352DBC #5851D6

Accessibility & contrast

On white

12.53
#27218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#27218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27218B
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27218B#FFFFFF#000000##FFFFFF
##27218B1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #27218b;
/* rgb */ color: rgb(39, 33, 139);
/* oklch */ color: oklch(34.0% 0.167 275.3);
Tailwind
colors: {
  custom: {
    50: '#715eae',
    500: '#27218b',
    950: '#000000',
  },
}
SCSS
$custom: #27218b;
$custom-light: #715eae;
$custom-dark: #000000;
JSON
{
  "hex": "#27218b",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 243.396,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.33969,
    "c": 0.16664,
    "h": 275.3
  },
  "luminance": 0.03383
}

Semantic roles & 50–950 ramp

primary
#27218B
secondary
#B3B94F
accent
#E543DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #27218B

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

Preview Lab → · Contrast checker → · Palette generator →

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