#27218A#27218A

#27218A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.165 H 275.5°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#27218A
RGBrgb(39, 33, 138)
HSLhsl(243, 61%, 34%)
HSVhsv(243, 76%, 54%)
CMYKcmyk(71.7%, 76.1%, 0%, 45.9%)
CIE-LABlab(21.41, 37.48, -56.94)
CIE-LCHlch(21.41, 68.17, 303.35°)
OKLaboklab(33.86% 0.0157 -0.1646)
OKLCHoklch(33.86% 0.165 275.5)
XYZxyz(5.9665, 3.3535, 24.3727)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27218A #848A21
analogous
#214F8A #27218A #5B218A
triadic
#27218A #8A2721 #218A27
tetradic
#27218A #8A214F #848A21 #218A5B
square
#27218A #8A214F #848A21 #218A5B
split-complementary
#27218A #8A5B21 #4F8A21
monochromatic
#0B0927 #191559 #27218A #352DBB #5850D5

Accessibility & contrast

On white

12.57
#27218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#27218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27218A
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27218A#FFFFFF#000000##FFFFFF
##27218A1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #27218a;
/* rgb */ color: rgb(39, 33, 138);
/* oklch */ color: oklch(33.9% 0.165 275.5);
Tailwind
colors: {
  custom: {
    50: '#715ead',
    500: '#27218a',
    950: '#000000',
  },
}
SCSS
$custom: #27218a;
$custom-light: #715ead;
$custom-dark: #000000;
JSON
{
  "hex": "#27218a",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 243.429,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33861,
    "c": 0.16536,
    "h": 275.5
  },
  "luminance": 0.03354
}

Semantic roles & 50–950 ramp

primary
#27218A
secondary
#B2B94E
accent
#E543DB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #27218A

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

Preview Lab → · Contrast checker → · Palette generator →

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