#27227E#27227E

#27227E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.149 H 276.7°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#27227E
RGBrgb(39, 34, 126)
HSLhsl(243, 58%, 31%)
HSVhsv(243, 73%, 49%)
CMYKcmyk(69%, 73%, 0%, 50.6%)
CIE-LABlab(20.37, 32.74, -51.10)
CIE-LCHlch(20.37, 60.68, 302.65°)
OKLaboklab(32.74% 0.0174 -0.1476)
OKLCHoklch(32.74% 0.149 276.7)
XYZxyz(5.1734, 3.0813, 20.0567)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27227E #797E22
analogous
#224B7E #27227E #55227E
triadic
#27227E #7E2722 #227E27
tetradic
#27227E #7E224B #797E22 #227E55
square
#27227E #7E224B #797E22 #227E55
split-complementary
#27227E #7E5522 #4B7E22
monochromatic
#09081E #18154E #27227E #362FAE #534CCF

Accessibility & contrast

On white

12.99
#27227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#27227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27227E
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27227E#FFFFFF#000000##FFFFFF
##27227E1.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #27227e;
/* rgb */ color: rgb(39, 34, 126);
/* oklch */ color: oklch(32.7% 0.149 276.7);
Tailwind
colors: {
  custom: {
    50: '#6e5ea4',
    500: '#27227e',
    950: '#000000',
  },
}
SCSS
$custom: #27227e;
$custom-light: #6e5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#27227e",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 243.261,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32742,
    "c": 0.14859,
    "h": 276.7
  },
  "luminance": 0.03082
}

Semantic roles & 50–950 ramp

primary
#27227E
secondary
#ABB14B
accent
#E147D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #27227E

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

Preview Lab → · Contrast checker → · Palette generator →

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