#27228E#27228E

#27228E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.169 H 274.9°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#27228E
RGBrgb(39, 34, 142)
HSLhsl(243, 61%, 35%)
HSVhsv(243, 76%, 56%)
CMYKcmyk(72.5%, 76.1%, 0%, 44.3%)
CIE-LABlab(22.04, 38.25, -58.38)
CIE-LCHlch(22.04, 69.80, 303.23°)
OKLaboklab(34.44% 0.0144 -0.1688)
OKLCHoklch(34.44% 0.169 274.9)
XYZxyz(6.2896, 3.5278, 25.9354)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27228E #898E22
analogous
#22538E #27228E #5D228E
triadic
#27228E #8E2722 #228E27
tetradic
#27228E #8E2253 #898E22 #228E5D
square
#27228E #8E2253 #898E22 #228E5D
split-complementary
#27228E #8E5D22 #538E22
monochromatic
#0C0A2B #19165D #27228E #352EBF #5A54D6

Accessibility & contrast

On white

12.31
#27228E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#27228E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27228E
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27228E#FFFFFF#000000##FFFFFF
##27228E1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A91
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #27228e;
/* rgb */ color: rgb(39, 34, 142);
/* oklch */ color: oklch(34.4% 0.169 274.9);
Tailwind
colors: {
  custom: {
    50: '#725fb0',
    500: '#27228e',
    950: '#000000',
  },
}
SCSS
$custom: #27228e;
$custom-light: #725fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#27228e",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 142
  },
  "hsl": {
    "h": 242.778,
    "s": 61.364,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34441,
    "c": 0.16943,
    "h": 274.9
  },
  "luminance": 0.03528
}

Semantic roles & 50–950 ramp

primary
#27228E
secondary
#B5BA52
accent
#E443DD
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #27228E

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

Preview Lab → · Contrast checker → · Palette generator →

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