#27187F#27187F

#27187F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.160 H 278.4°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#27187F
RGBrgb(39, 24, 127)
HSLhsl(249, 68%, 30%)
HSVhsv(249, 81%, 50%)
CMYKcmyk(69.3%, 81.1%, 0%, 50.2%)
CIE-LABlab(18.44, 38.82, -54.91)
CIE-LCHlch(18.44, 67.25, 305.26°)
OKLaboklab(31.41% 0.0235 -0.1586)
OKLCHoklch(31.41% 0.16 278.4)
XYZxyz(4.9929, 2.6165, 20.3165)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27187F #707F18
analogous
#183D7F #27187F #5B187F
triadic
#27187F #7F2718 #187F27
tetradic
#27187F #7F183D #707F18 #187F5B
square
#27187F #7F183D #707F18 #187F5B
split-complementary
#27187F #7F5B18 #3D7F18
monochromatic
#08051A #170E4C #27187F #3722B2 #5038D9

Accessibility & contrast

On white

13.78
#27187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27187F
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27187F#FFFFFF#000000##FFFFFF
##27187F1.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #27187f;
/* rgb */ color: rgb(39, 24, 127);
/* oklch */ color: oklch(31.4% 0.160 278.4);
Tailwind
colors: {
  custom: {
    50: '#6f58a5',
    500: '#27187f',
    950: '#000000',
  },
}
SCSS
$custom: #27187f;
$custom-light: #6f58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#27187f",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 248.738,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3141,
    "c": 0.16034,
    "h": 278.4
  },
  "luminance": 0.02617
}

Semantic roles & 50–950 ramp

primary
#27187F
secondary
#A2B33F
accent
#EB3DD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27187F

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

Preview Lab → · Contrast checker → · Palette generator →

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