#27229B#27229B

#27229B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.9% C 0.186 H 273.6°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#27229B
RGBrgb(39, 34, 155)
HSLhsl(242, 64%, 37%)
HSVhsv(242, 78%, 61%)
CMYKcmyk(74.8%, 78.1%, 0%, 39.2%)
CIE-LABlab(23.48, 42.60, -64.04)
CIE-LCHlch(23.48, 76.92, 303.63°)
OKLaboklab(35.88% 0.0116 -0.1853)
OKLCHoklch(35.88% 0.186 273.6)
XYZxyz(7.3232, 3.9412, 31.3788)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27229B #969B22
analogous
#225A9B #27229B #63229B
triadic
#27229B #9B2722 #229B27
tetradic
#27229B #9B225A #969B22 #229B63
square
#27229B #9B225A #969B22 #229B63
split-complementary
#27229B #9B6322 #5A9B22
monochromatic
#0E0C37 #1A1769 #27229B #342DCD #615CDB

Accessibility & contrast

On white

11.74
#27229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#27229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27229B
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27229B#FFFFFF#000000##FFFFFF
##27229B1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #27229b;
/* rgb */ color: rgb(39, 34, 155);
/* oklch */ color: oklch(35.9% 0.186 273.6);
Tailwind
colors: {
  custom: {
    50: '#755fba',
    500: '#27229b',
    950: '#000000',
  },
}
SCSS
$custom: #27229b;
$custom-light: #755fba;
$custom-dark: #000000;
JSON
{
  "hex": "#27229b",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 242.479,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.35875,
    "c": 0.18565,
    "h": 273.6
  },
  "luminance": 0.03942
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #27229B

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

Preview Lab → · Contrast checker → · Palette generator →

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