#27228C#27228C

#27228C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.167 H 275.1°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#27228C
RGBrgb(39, 34, 140)
HSLhsl(243, 61%, 34%)
HSVhsv(243, 76%, 55%)
CMYKcmyk(72.1%, 75.7%, 0%, 45.1%)
CIE-LABlab(21.83, 37.57, -57.49)
CIE-LCHlch(21.83, 68.68, 303.17°)
OKLaboklab(34.22% 0.0148 -0.1662)
OKLCHoklch(34.22% 0.167 275.1)
XYZxyz(6.1408, 3.4683, 25.1517)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27228C #878C22
analogous
#22528C #27228C #5C228C
triadic
#27228C #8C2722 #228C27
tetradic
#27228C #8C2252 #878C22 #228C5C
square
#27228C #8C2252 #878C22 #228C5C
split-complementary
#27228C #8C5C22 #528C22
monochromatic
#0C0A2A #19165B #27228C #352EBD #5953D5

Accessibility & contrast

On white

12.40
#27228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27228C
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27228C#FFFFFF#000000##FFFFFF
##27228C1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#002F8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #27228c;
/* rgb */ color: rgb(39, 34, 140);
/* oklch */ color: oklch(34.2% 0.167 275.1);
Tailwind
colors: {
  custom: {
    50: '#715faf',
    500: '#27228c',
    950: '#000000',
  },
}
SCSS
$custom: #27228c;
$custom-light: #715faf;
$custom-dark: #000000;
JSON
{
  "hex": "#27228c",
  "rgb": {
    "r": 39,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 242.83,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34224,
    "c": 0.16688,
    "h": 275.1
  },
  "luminance": 0.03469
}

Semantic roles & 50–950 ramp

primary
#27228C
secondary
#B4B951
accent
#E444DC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #27228C

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

Preview Lab → · Contrast checker → · Palette generator →

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