#27187B#27187B

#27187B is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.0% C 0.155 H 279.1°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#27187B
RGBrgb(39, 24, 123)
HSLhsl(249, 67%, 29%)
HSVhsv(249, 80%, 48%)
CMYKcmyk(68.3%, 80.5%, 0%, 51.8%)
CIE-LABlab(17.98, 37.53, -53.11)
CIE-LCHlch(17.98, 65.03, 305.24°)
OKLaboklab(30.96% 0.0246 -0.1534)
OKLCHoklch(30.96% 0.155 279.1)
XYZxyz(4.7373, 2.5143, 18.9707)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27187B #6C7B18
analogous
#183B7B #27187B #59187B
triadic
#27187B #7B2718 #187B27
tetradic
#27187B #7B183B #6C7B18 #187B59
square
#27187B #7B183B #6C7B18 #187B59
split-complementary
#27187B #7B5918 #3B7B18
monochromatic
#08051A #170E48 #27187B #3722AE #4E36D8

Accessibility & contrast

On white

13.97
#27187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#27187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27187B
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27187B#FFFFFF#000000##FFFFFF
##27187B1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #27187b;
/* rgb */ color: rgb(39, 24, 123);
/* oklch */ color: oklch(31.0% 0.155 279.1);
Tailwind
colors: {
  custom: {
    50: '#6e58a2',
    500: '#27187b',
    950: '#000000',
  },
}
SCSS
$custom: #27187b;
$custom-light: #6e58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#27187b",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 249.091,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30958,
    "c": 0.15534,
    "h": 279.1
  },
  "luminance": 0.02515
}

Semantic roles & 50–950 ramp

primary
#27187B
secondary
#9FB03F
accent
#EA3ED0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27187B

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

Preview Lab → · Contrast checker → · Palette generator →

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