#27187D#27187D

#27187D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.158 H 278.8°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#27187D
RGBrgb(39, 24, 125)
HSLhsl(249, 68%, 29%)
HSVhsv(249, 81%, 49%)
CMYKcmyk(68.8%, 80.8%, 0%, 51%)
CIE-LABlab(18.21, 38.18, -54.01)
CIE-LCHlch(18.21, 66.14, 305.25°)
OKLaboklab(31.18% 0.024 -0.156)
OKLCHoklch(31.18% 0.158 278.8)
XYZxyz(4.8638, 2.5649, 19.6368)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27187D #6E7D18
analogous
#183C7D #27187D #5A187D
triadic
#27187D #7D2718 #187D27
tetradic
#27187D #7D183C #6E7D18 #187D5A
square
#27187D #7D183C #6E7D18 #187D5A
split-complementary
#27187D #7D5A18 #3C7D18
monochromatic
#08051A #170E4A #27187D #3722B0 #4F37D9

Accessibility & contrast

On white

13.88
#27187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#27187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27187D
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27187D#FFFFFF#000000##FFFFFF
##27187D1.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003080
Deuteranopia (green-blind)
#00287B
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #27187d;
/* rgb */ color: rgb(39, 24, 125);
/* oklch */ color: oklch(31.2% 0.158 278.8);
Tailwind
colors: {
  custom: {
    50: '#6f58a4',
    500: '#27187d',
    950: '#000000',
  },
}
SCSS
$custom: #27187d;
$custom-light: #6f58a4;
$custom-dark: #000000;
JSON
{
  "hex": "#27187d",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 248.911,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31184,
    "c": 0.15784,
    "h": 278.8
  },
  "luminance": 0.02565
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #27187D

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

Preview Lab → · Contrast checker → · Palette generator →

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