#27408B#27408B

#27408B is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.7% C 0.129 H 266.6°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#27408B
RGBrgb(39, 64, 139)
HSLhsl(225, 56%, 35%)
HSVhsv(225, 72%, 55%)
CMYKcmyk(71.9%, 54%, 0%, 45.5%)
CIE-LABlab(29.32, 17.49, -44.64)
CIE-LCHlch(29.32, 47.94, 291.39°)
OKLaboklab(39.7% -0.0076 -0.1283)
OKLCHoklch(39.7% 0.129 266.6)
XYZxyz(7.3287, 5.9615, 25.1855)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27408B #8B7227
analogous
#27728B #27408B #40278B
triadic
#27408B #8B2740 #408B27
tetradic
#27408B #8B2772 #8B7227 #278B40
square
#27408B #8B2772 #8B7227 #278B40
split-complementary
#27408B #8B4027 #728B27
monochromatic
#0C142B #1A2A5B #27408B #3456BB #5B79D1

Accessibility & contrast

On white

9.58
#27408B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#27408B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27408B
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27408B#FFFFFF#000000##FFFFFF
##27408B1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4A8E
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #27408b;
/* rgb */ color: rgb(39, 64, 139);
/* oklch */ color: oklch(39.7% 0.129 266.6);
Tailwind
colors: {
  custom: {
    50: '#6f74ad',
    500: '#27408b',
    950: '#000000',
  },
}
SCSS
$custom: #27408b;
$custom-light: #6f74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#27408b",
  "rgb": {
    "r": 39,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 225,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39701,
    "c": 0.12858,
    "h": 266.6
  },
  "luminance": 0.05962
}

Semantic roles & 50–950 ramp

primary
#27408B
secondary
#B69F58
accent
#BA48DF
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #27408B

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

Preview Lab → · Contrast checker → · Palette generator →

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