#27218C#27218C

#27218C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.168 H 275.2°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#27218C
RGBrgb(39, 33, 140)
HSLhsl(243, 62%, 34%)
HSVhsv(243, 76%, 55%)
CMYKcmyk(72.1%, 76.4%, 0%, 45.1%)
CIE-LABlab(21.62, 38.15, -57.83)
CIE-LCHlch(21.62, 69.28, 303.41°)
OKLaboklab(34.08% 0.0153 -0.1672)
OKLCHoklch(34.08% 0.168 275.2)
XYZxyz(6.1126, 3.4119, 25.1423)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27218C #868C21
analogous
#21518C #27218C #5D218C
triadic
#27218C #8C2721 #218C27
tetradic
#27218C #8C2151 #868C21 #218C5D
square
#27218C #8C2151 #868C21 #218C5D
split-complementary
#27218C #8C5D21 #518C21
monochromatic
#0B0A29 #19155A #27218C #352DBE #5951D6

Accessibility & contrast

On white

12.48
#27218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27218C
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27218C#FFFFFF#000000##FFFFFF
##27218C1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #27218c;
/* rgb */ color: rgb(39, 33, 140);
/* oklch */ color: oklch(34.1% 0.168 275.2);
Tailwind
colors: {
  custom: {
    50: '#715eaf',
    500: '#27218c',
    950: '#000000',
  },
}
SCSS
$custom: #27218c;
$custom-light: #715eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#27218c",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 243.364,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34078,
    "c": 0.16791,
    "h": 275.2
  },
  "luminance": 0.03412
}

Semantic roles & 50–950 ramp

primary
#27218C
secondary
#B4B94F
accent
#E543DC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #27218C

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

Preview Lab → · Contrast checker → · Palette generator →

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