#27227D#27227D

#27227D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.147 H 276.9°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#27227D
RGBrgb(39, 34, 125)
HSLhsl(243, 57%, 31%)
HSVhsv(243, 73%, 49%)
CMYKcmyk(68.8%, 72.8%, 0%, 51%)
CIE-LABlab(20.27, 32.39, -50.63)
CIE-LCHlch(20.27, 60.10, 302.61°)
OKLaboklab(32.64% 0.0176 -0.1462)
OKLCHoklch(32.64% 0.147 276.9)
XYZxyz(5.1092, 3.0556, 19.7186)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27227D #787D22
analogous
#224A7D #27227D #54227D
triadic
#27227D #7D2722 #227D27
tetradic
#27227D #7D224A #787D22 #227D54
square
#27227D #7D224A #787D22 #227D54
split-complementary
#27227D #7D5422 #4A7D22
monochromatic
#09081D #18154D #27227D #362FAD #524BCE

Accessibility & contrast

On white

13.03
#27227D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#27227D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27227D
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27227D#FFFFFF#000000##FFFFFF
##27227D1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002D7B
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #27227d;
/* rgb */ color: rgb(39, 34, 125);
/* oklch */ color: oklch(32.6% 0.147 276.9);
Tailwind
colors: {
  custom: {
    50: '#6e5ea4',
    500: '#27227d',
    950: '#000000',
  },
}
SCSS
$custom: #27227d;
$custom-light: #6e5ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#27227d",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 125
  },
  "hsl": {
    "h": 243.297,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32638,
    "c": 0.14726,
    "h": 276.9
  },
  "luminance": 0.03056
}

Semantic roles & 50–950 ramp

primary
#27227D
secondary
#AAB04B
accent
#E047D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #27227D

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

Preview Lab → · Contrast checker → · Palette generator →

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