#27228D#27228D

#27228D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.168 H 275.0°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#27228D
RGBrgb(39, 34, 141)
HSLhsl(243, 61%, 34%)
HSVhsv(243, 76%, 55%)
CMYKcmyk(72.3%, 75.9%, 0%, 44.7%)
CIE-LABlab(21.94, 37.91, -57.94)
CIE-LCHlch(21.94, 69.24, 303.20°)
OKLaboklab(34.33% 0.0146 -0.1675)
OKLCHoklch(34.33% 0.168 275)
XYZxyz(6.2149, 3.4979, 25.5418)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27228D #888D22
analogous
#22538D #27228D #5D228D
triadic
#27228D #8D2722 #228D27
tetradic
#27228D #8D2253 #888D22 #228D5D
square
#27228D #8D2253 #888D22 #228D5D
split-complementary
#27228D #8D5D22 #538D22
monochromatic
#0C0A2A #19165C #27228D #352EBE #5A54D6

Accessibility & contrast

On white

12.36
#27228D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#27228D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27228D
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27228D#FFFFFF#000000##FFFFFF
##27228D1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #27228d;
/* rgb */ color: rgb(39, 34, 141);
/* oklch */ color: oklch(34.3% 0.168 275.0);
Tailwind
colors: {
  custom: {
    50: '#725faf',
    500: '#27228d',
    950: '#000000',
  },
}
SCSS
$custom: #27228d;
$custom-light: #725faf;
$custom-dark: #000000;
JSON
{
  "hex": "#27228d",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 141
  },
  "hsl": {
    "h": 242.804,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34332,
    "c": 0.16816,
    "h": 275
  },
  "luminance": 0.03498
}

Semantic roles & 50–950 ramp

primary
#27228D
secondary
#B5B951
accent
#E444DD
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #27228D

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

Preview Lab → · Contrast checker → · Palette generator →

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