#27218F#27218F

#27218F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.172 H 274.9°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#27218F
RGBrgb(39, 33, 143)
HSLhsl(243, 63%, 35%)
HSVhsv(243, 77%, 56%)
CMYKcmyk(72.7%, 76.9%, 0%, 43.9%)
CIE-LABlab(21.95, 39.17, -59.16)
CIE-LCHlch(21.95, 70.95, 303.51°)
OKLaboklab(34.41% 0.0147 -0.1711)
OKLCHoklch(34.41% 0.172 274.9)
XYZxyz(6.3368, 3.5016, 26.3232)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27218F #898F21
analogous
#21528F #27218F #5E218F
triadic
#27218F #8F2721 #218F27
tetradic
#27218F #8F2152 #898F21 #218F5E
square
#27218F #8F2152 #898F21 #218F5E
split-complementary
#27218F #8F5E21 #528F21
monochromatic
#0C0A2C #19165D #27218F #352CC1 #5A53D7

Accessibility & contrast

On white

12.35
#27218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#27218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27218F
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27218F#FFFFFF#000000##FFFFFF
##27218F1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #27218f;
/* rgb */ color: rgb(39, 33, 143);
/* oklch */ color: oklch(34.4% 0.172 274.9);
Tailwind
colors: {
  custom: {
    50: '#725eb1',
    500: '#27218f',
    950: '#000000',
  },
}
SCSS
$custom: #27218f;
$custom-light: #725eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#27218f",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 243.273,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34406,
    "c": 0.17171,
    "h": 274.9
  },
  "luminance": 0.03502
}

Semantic roles & 50–950 ramp

primary
#27218F
secondary
#B5BB51
accent
#E642DD
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #27218F

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

Preview Lab → · Contrast checker → · Palette generator →

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