#27228A#27228A

#27228A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.164 H 275.3°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#27228A
RGBrgb(39, 34, 138)
HSLhsl(243, 60%, 34%)
HSVhsv(243, 75%, 54%)
CMYKcmyk(71.7%, 75.4%, 0%, 45.9%)
CIE-LABlab(21.62, 36.89, -56.60)
CIE-LCHlch(21.62, 67.56, 303.10°)
OKLaboklab(34.01% 0.0152 -0.1636)
OKLCHoklch(34.01% 0.164 275.3)
XYZxyz(5.9947, 3.4098, 24.3821)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27228A #858A22
analogous
#22518A #27228A #5B228A
triadic
#27228A #8A2722 #228A27
tetradic
#27228A #8A2251 #858A22 #228A5B
square
#27228A #8A2251 #858A22 #228A5B
split-complementary
#27228A #8A5B22 #518A22
monochromatic
#0B0A28 #191659 #27228A #352EBB #5852D4

Accessibility & contrast

On white

12.49
#27228A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#27228A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27228A
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27228A#FFFFFF#000000##FFFFFF
##27228A1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #27228a;
/* rgb */ color: rgb(39, 34, 138);
/* oklch */ color: oklch(34.0% 0.164 275.3);
Tailwind
colors: {
  custom: {
    50: '#715fad',
    500: '#27228a',
    950: '#000000',
  },
}
SCSS
$custom: #27228a;
$custom-light: #715fad;
$custom-dark: #000000;
JSON
{
  "hex": "#27228a",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 138
  },
  "hsl": {
    "h": 242.885,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34008,
    "c": 0.16432,
    "h": 275.3
  },
  "luminance": 0.0341
}

Semantic roles & 50–950 ramp

primary
#27228A
secondary
#B3B850
accent
#E444DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #27228A

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

Preview Lab → · Contrast checker → · Palette generator →

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