#27228B#27228B

#27228B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.166 H 275.2°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#27228B
RGBrgb(39, 34, 139)
HSLhsl(243, 61%, 34%)
HSVhsv(243, 76%, 55%)
CMYKcmyk(71.9%, 75.5%, 0%, 45.5%)
CIE-LABlab(21.72, 37.23, -57.05)
CIE-LCHlch(21.72, 68.12, 303.13°)
OKLaboklab(34.12% 0.015 -0.1649)
OKLCHoklch(34.12% 0.166 275.2)
XYZxyz(6.0674, 3.4389, 24.7651)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27228B #868B22
analogous
#22528B #27228B #5C228B
triadic
#27228B #8B2722 #228B27
tetradic
#27228B #8B2252 #868B22 #228B5C
square
#27228B #8B2252 #868B22 #228B5C
split-complementary
#27228B #8B5C22 #528B22
monochromatic
#0B0A29 #19165A #27228B #352EBC #5953D5

Accessibility & contrast

On white

12.44
#27228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#27228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27228B
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27228B#FFFFFF#000000##FFFFFF
##27228B1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #27228b;
/* rgb */ color: rgb(39, 34, 139);
/* oklch */ color: oklch(34.1% 0.166 275.2);
Tailwind
colors: {
  custom: {
    50: '#715fae',
    500: '#27228b',
    950: '#000000',
  },
}
SCSS
$custom: #27228b;
$custom-light: #715fae;
$custom-dark: #000000;
JSON
{
  "hex": "#27228b",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 242.857,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34116,
    "c": 0.16561,
    "h": 275.2
  },
  "luminance": 0.03439
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #27228B

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

Preview Lab → · Contrast checker → · Palette generator →

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