#27187E#27187E

#27187E is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.3% C 0.159 H 278.6°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#27187E
RGBrgb(39, 24, 126)
HSLhsl(249, 68%, 29%)
HSVhsv(249, 81%, 49%)
CMYKcmyk(69%, 81%, 0%, 50.6%)
CIE-LABlab(18.32, 38.50, -54.46)
CIE-LCHlch(18.32, 66.70, 305.26°)
OKLaboklab(31.3% 0.0238 -0.1573)
OKLCHoklch(31.3% 0.159 278.6)
XYZxyz(4.9280, 2.5905, 19.9749)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27187E #6F7E18
analogous
#183C7E #27187E #5A187E
triadic
#27187E #7E2718 #187E27
tetradic
#27187E #7E183C #6F7E18 #187E5A
square
#27187E #7E183C #6F7E18 #187E5A
split-complementary
#27187E #7E5A18 #3C7E18
monochromatic
#08051A #170E4B #27187E #3722B1 #4F37D9

Accessibility & contrast

On white

13.83
#27187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#27187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27187E
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27187E#FFFFFF#000000##FFFFFF
##27187E1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #27187e;
/* rgb */ color: rgb(39, 24, 126);
/* oklch */ color: oklch(31.3% 0.159 278.6);
Tailwind
colors: {
  custom: {
    50: '#6f58a5',
    500: '#27187e',
    950: '#000000',
  },
}
SCSS
$custom: #27187e;
$custom-light: #6f58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#27187e",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 248.824,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31297,
    "c": 0.15909,
    "h": 278.6
  },
  "luminance": 0.02591
}

Semantic roles & 50–950 ramp

primary
#27187E
secondary
#A2B23F
accent
#EB3DD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27187E

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

Preview Lab → · Contrast checker → · Palette generator →

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