#27229D#27229D

#27229D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.188 H 273.4°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#27229D
RGBrgb(39, 34, 157)
HSLhsl(242, 64%, 37%)
HSVhsv(242, 78%, 62%)
CMYKcmyk(75.2%, 78.3%, 0%, 38.4%)
CIE-LABlab(23.70, 43.26, -64.90)
CIE-LCHlch(23.70, 77.99, 303.69°)
OKLaboklab(36.1% 0.0111 -0.1878)
OKLCHoklch(36.1% 0.188 273.4)
XYZxyz(7.4925, 4.0089, 32.2707)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27229D #989D22
analogous
#225B9D #27229D #65229D
triadic
#27229D #9D2722 #229D27
tetradic
#27229D #9D225B #989D22 #229D65
square
#27229D #9D225B #989D22 #229D65
split-complementary
#27229D #9D6522 #5B9D22
monochromatic
#0E0C38 #1B176B #27229D #332DCF #635DDC

Accessibility & contrast

On white

11.65
#27229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#27229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27229D
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27229D#FFFFFF#000000##FFFFFF
##27229D1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00329B
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #27229d;
/* rgb */ color: rgb(39, 34, 157);
/* oklch */ color: oklch(36.1% 0.188 273.4);
Tailwind
colors: {
  custom: {
    50: '#7660bb',
    500: '#27229d',
    950: '#000000',
  },
}
SCSS
$custom: #27229d;
$custom-light: #7660bb;
$custom-dark: #000000;
JSON
{
  "hex": "#27229d",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 242.439,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36099,
    "c": 0.1881,
    "h": 273.4
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#27229D
secondary
#BCC15A
accent
#E740E1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #27229D

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

Preview Lab → · Contrast checker → · Palette generator →

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