#27229E#27229E

#27229E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.189 H 273.3°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#27229E
RGBrgb(39, 34, 158)
HSLhsl(242, 65%, 38%)
HSVhsv(242, 78%, 62%)
CMYKcmyk(75.3%, 78.5%, 0%, 38%)
CIE-LABlab(23.81, 43.59, -65.32)
CIE-LCHlch(23.81, 78.53, 303.72°)
OKLaboklab(36.21% 0.0109 -0.189)
OKLCHoklch(36.21% 0.189 273.3)
XYZxyz(7.5782, 4.0432, 32.7222)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27229E #999E22
analogous
#225B9E #27229E #65229E
triadic
#27229E #9E2722 #229E27
tetradic
#27229E #9E225B #999E22 #229E65
square
#27229E #9E225B #999E22 #229E65
split-complementary
#27229E #9E6522 #5B9E22
monochromatic
#0E0C39 #1B176C #27229E #332DD0 #635EDC

Accessibility & contrast

On white

11.61
#27229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#27229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27229E
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27229E#FFFFFF#000000##FFFFFF
##27229E1.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA1
Deuteranopia (green-blind)
#00339C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #27229e;
/* rgb */ color: rgb(39, 34, 158);
/* oklch */ color: oklch(36.2% 0.189 273.3);
Tailwind
colors: {
  custom: {
    50: '#7660bc',
    500: '#27229e',
    950: '#000000',
  },
}
SCSS
$custom: #27229e;
$custom-light: #7660bc;
$custom-dark: #000000;
JSON
{
  "hex": "#27229e",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 242.419,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36211,
    "c": 0.18931,
    "h": 273.3
  },
  "luminance": 0.04044
}

Semantic roles & 50–950 ramp

primary
#27229E
secondary
#BDC15B
accent
#E840E1
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #27229E

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

Preview Lab → · Contrast checker → · Palette generator →

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