#27318B#27318B

#27318B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.148 H 271.9°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#27318B
RGBrgb(39, 49, 139)
HSLhsl(234, 56%, 35%)
HSVhsv(234, 72%, 55%)
CMYKcmyk(71.9%, 64.7%, 0%, 45.5%)
CIE-LABlab(25.23, 27.71, -51.28)
CIE-LCHlch(25.23, 58.29, 298.39°)
OKLaboklab(36.65% 0.0049 -0.148)
OKLCHoklch(36.65% 0.148 271.9)
XYZxyz(6.5936, 4.4914, 24.9405)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27318B #8B8127
analogous
#27638B #27318B #4F278B
triadic
#27318B #8B2731 #318B27
tetradic
#27318B #8B2763 #8B8127 #278B4F
square
#27318B #8B2763 #8B8127 #278B4F
split-complementary
#27318B #8B4F27 #638B27
monochromatic
#0C0F2B #1A205B #27318B #3442BB #5B67D1

Accessibility & contrast

On white

11.06
#27318B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#27318B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27318B
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27318B#FFFFFF#000000##FFFFFF
##27318B1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #27318b;
/* rgb */ color: rgb(39, 49, 139);
/* oklch */ color: oklch(36.7% 0.148 271.9);
Tailwind
colors: {
  custom: {
    50: '#7069ae',
    500: '#27318b',
    950: '#000000',
  },
}
SCSS
$custom: #27318b;
$custom-light: #7069ae;
$custom-dark: #000000;
JSON
{
  "hex": "#27318b",
  "rgb": {
    "r": 39,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 234,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36654,
    "c": 0.14813,
    "h": 271.9
  },
  "luminance": 0.04492
}

Semantic roles & 50–950 ramp

primary
#27318B
secondary
#B6AD58
accent
#D048DF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #27318B

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

Preview Lab → · Contrast checker → · Palette generator →

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