#27187C#27187C

#27187C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.1% C 0.157 H 278.9°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#27187C
RGBrgb(39, 24, 124)
HSLhsl(249, 68%, 29%)
HSVhsv(249, 81%, 49%)
CMYKcmyk(68.5%, 80.6%, 0%, 51.4%)
CIE-LABlab(18.10, 37.85, -53.57)
CIE-LCHlch(18.10, 65.59, 305.25°)
OKLaboklab(31.07% 0.0243 -0.1547)
OKLCHoklch(31.07% 0.157 278.9)
XYZxyz(4.8003, 2.5394, 19.3021)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27187C #6D7C18
analogous
#183B7C #27187C #59187C
triadic
#27187C #7C2718 #187C27
tetradic
#27187C #7C183B #6D7C18 #187C59
square
#27187C #7C183B #6D7C18 #187C59
split-complementary
#27187C #7C5918 #3B7C18
monochromatic
#08051A #170E49 #27187C #3722AF #4F36D8

Accessibility & contrast

On white

13.93
#27187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27187C
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27187C#FFFFFF#000000##FFFFFF
##27187C1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #27187c;
/* rgb */ color: rgb(39, 24, 124);
/* oklch */ color: oklch(31.1% 0.157 278.9);
Tailwind
colors: {
  custom: {
    50: '#6f58a3',
    500: '#27187c',
    950: '#000000',
  },
}
SCSS
$custom: #27187c;
$custom-light: #6f58a3;
$custom-dark: #000000;
JSON
{
  "hex": "#27187c",
  "rgb": {
    "r": 39,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 249,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31071,
    "c": 0.15659,
    "h": 278.9
  },
  "luminance": 0.0254
}

Semantic roles & 50–950 ramp

primary
#27187C
secondary
#A0B13F
accent
#EA3DD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #27187C

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

Preview Lab → · Contrast checker → · Palette generator →

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