#27218E#27218E

#27218E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.170 H 275.0°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#27218E
RGBrgb(39, 33, 142)
HSLhsl(243, 62%, 34%)
HSVhsv(243, 77%, 56%)
CMYKcmyk(72.5%, 76.8%, 0%, 44.3%)
CIE-LABlab(21.84, 38.83, -58.72)
CIE-LCHlch(21.84, 70.40, 303.48°)
OKLaboklab(34.3% 0.0149 -0.1698)
OKLCHoklch(34.3% 0.17 275)
XYZxyz(6.2614, 3.4714, 25.9260)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27218E #888E21
analogous
#21528E #27218E #5E218E
triadic
#27218E #8E2721 #218E27
tetradic
#27218E #8E2152 #888E21 #218E5E
square
#27218E #8E2152 #888E21 #218E5E
split-complementary
#27218E #8E5E21 #528E21
monochromatic
#0C0A2B #19155C #27218E #352DC0 #5A52D7

Accessibility & contrast

On white

12.39
#27218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#27218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27218E
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27218E#FFFFFF#000000##FFFFFF
##27218E1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #27218e;
/* rgb */ color: rgb(39, 33, 142);
/* oklch */ color: oklch(34.3% 0.170 275.0);
Tailwind
colors: {
  custom: {
    50: '#725eb0',
    500: '#27218e',
    950: '#000000',
  },
}
SCSS
$custom: #27218e;
$custom-light: #725eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#27218e",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 243.303,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34297,
    "c": 0.17044,
    "h": 275
  },
  "luminance": 0.03472
}

Semantic roles & 50–950 ramp

primary
#27218E
secondary
#B5BA50
accent
#E542DC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #27218E

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

Preview Lab → · Contrast checker → · Palette generator →

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