#27216D#27216D

#27216D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.126 H 279.5°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#27216D
RGBrgb(39, 33, 109)
HSLhsl(245, 54%, 28%)
HSVhsv(245, 70%, 43%)
CMYKcmyk(64.2%, 69.7%, 0%, 57.3%)
CIE-LABlab(18.47, 27.37, -43.30)
CIE-LCHlch(18.47, 51.22, 302.29°)
OKLaboklab(30.86% 0.0209 -0.1247)
OKLCHoklch(30.86% 0.126 279.5)
XYZxyz(4.1400, 2.6229, 14.7531)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27216D #676D21
analogous
#21416D #27216D #4D216D
triadic
#27216D #6D2721 #216D27
tetradic
#27216D #6D2141 #676D21 #216D4D
square
#27216D #6D2141 #676D21 #216D4D
split-complementary
#27216D #6D4D21 #416D21
monochromatic
#080717 #16133E #27216D #382F9C #4D42C6

Accessibility & contrast

On white

13.77
#27216D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#27216D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27216D
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27216D#FFFFFF#000000##FFFFFF
##27216D1.0013.771.5213.77
#FFFFFF13.771.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#002A6C
Tritanopia (blue-blind)
#003544
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #27216d;
/* rgb */ color: rgb(39, 33, 109);
/* oklch */ color: oklch(30.9% 0.126 279.5);
Tailwind
colors: {
  custom: {
    50: '#6a5d98',
    500: '#27216d',
    950: '#000000',
  },
}
SCSS
$custom: #27216d;
$custom-light: #6a5d98;
$custom-dark: #000000;
JSON
{
  "hex": "#27216d",
  "rgb": {
    "r": 39,
    "g": 33,
    "b": 109
  },
  "hsl": {
    "h": 244.737,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30863,
    "c": 0.12648,
    "h": 279.5
  },
  "luminance": 0.02623
}

Semantic roles & 50–950 ramp

primary
#27216D
secondary
#9AA149
accent
#DD4BD1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #27216D

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

Preview Lab → · Contrast checker → · Palette generator →

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