#27229F#27229F

#27229F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.191 H 273.2°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#27229F
RGBrgb(39, 34, 159)
HSLhsl(242, 65%, 38%)
HSVhsv(242, 79%, 62%)
CMYKcmyk(75.5%, 78.6%, 0%, 37.6%)
CIE-LABlab(23.93, 43.92, -65.74)
CIE-LCHlch(23.93, 79.06, 303.74°)
OKLaboklab(36.32% 0.0107 -0.1902)
OKLCHoklch(36.32% 0.191 273.2)
XYZxyz(7.6646, 4.0778, 33.1773)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27229F #9A9F22
analogous
#225B9F #27229F #65229F
triadic
#27229F #9F2722 #229F27
tetradic
#27229F #9F225B #9A9F22 #229F65
square
#27229F #9F225B #9A9F22 #229F65
split-complementary
#27229F #9F6522 #5B9F22
monochromatic
#0E0C3A #1B176D #27229F #332DD1 #645FDD

Accessibility & contrast

On white

11.57
#27229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#27229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27229F
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27229F#FFFFFF#000000##FFFFFF
##27229F1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #27229f;
/* rgb */ color: rgb(39, 34, 159);
/* oklch */ color: oklch(36.3% 0.191 273.2);
Tailwind
colors: {
  custom: {
    50: '#7660bd',
    500: '#27229f',
    950: '#000000',
  },
}
SCSS
$custom: #27229f;
$custom-light: #7660bd;
$custom-dark: #000000;
JSON
{
  "hex": "#27229f",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 242.4,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36324,
    "c": 0.19053,
    "h": 273.2
  },
  "luminance": 0.04079
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #27229F

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

Preview Lab → · Contrast checker → · Palette generator →

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