#27229A#27229A

#27229A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.184 H 273.7°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#27229A
RGBrgb(39, 34, 154)
HSLhsl(243, 64%, 37%)
HSVhsv(243, 78%, 60%)
CMYKcmyk(74.7%, 77.9%, 0%, 39.6%)
CIE-LABlab(23.36, 42.27, -63.62)
CIE-LCHlch(23.36, 76.38, 303.61°)
OKLaboklab(35.76% 0.0118 -0.184)
OKLCHoklch(35.76% 0.184 273.7)
XYZxyz(7.2395, 3.9077, 30.9383)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27229A #959A22
analogous
#22599A #27229A #63229A
triadic
#27229A #9A2722 #229A27
tetradic
#27229A #9A2259 #959A22 #229A63
square
#27229A #9A2259 #959A22 #229A63
split-complementary
#27229A #9A6322 #599A22
monochromatic
#0E0C36 #1A1768 #27229A #342DCC #615BDB

Accessibility & contrast

On white

11.79
#27229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#27229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27229A
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27229A#FFFFFF#000000##FFFFFF
##27229A1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003298
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #27229a;
/* rgb */ color: rgb(39, 34, 154);
/* oklch */ color: oklch(35.8% 0.184 273.7);
Tailwind
colors: {
  custom: {
    50: '#755fb9',
    500: '#27229a',
    950: '#000000',
  },
}
SCSS
$custom: #27229a;
$custom-light: #755fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#27229a",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 242.5,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35763,
    "c": 0.18443,
    "h": 273.7
  },
  "luminance": 0.03908
}

Semantic roles & 50–950 ramp

primary
#27229A
secondary
#BBBF58
accent
#E741E0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #27229A

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

Preview Lab → · Contrast checker → · Palette generator →

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