#27287D#27287D

#27287D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.140 H 275.3°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#27287D
RGBrgb(39, 40, 125)
HSLhsl(239, 52%, 32%)
HSVhsv(239, 69%, 49%)
CMYKcmyk(68.8%, 68%, 0%, 51%)
CIE-LABlab(21.69, 28.53, -48.30)
CIE-LCHlch(21.69, 56.09, 300.57°)
OKLaboklab(33.67% 0.013 -0.1394)
OKLCHoklch(33.67% 0.14 275.3)
XYZxyz(5.2959, 3.4291, 19.7809)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27287D #7D7C27
analogous
#27537D #27287D #51277D
triadic
#27287D #7D2728 #287D27
tetradic
#27287D #7D2753 #7D7C27 #277D51
square
#27287D #7D2753 #7D7C27 #277D51
split-complementary
#27287D #7D5127 #537D27
monochromatic
#0A0A20 #18194E #27287D #3637AC #5556CA

Accessibility & contrast

On white

12.46
#27287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#27287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27287D
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27287D#FFFFFF#000000##FFFFFF
##27287D1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #27287d;
/* rgb */ color: rgb(39, 40, 125);
/* oklch */ color: oklch(33.7% 0.140 275.3);
Tailwind
colors: {
  custom: {
    50: '#6d62a3',
    500: '#27287d',
    950: '#000000',
  },
}
SCSS
$custom: #27287d;
$custom-light: #6d62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#27287d",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 239.302,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33665,
    "c": 0.13998,
    "h": 275.3
  },
  "luminance": 0.0343
}

Semantic roles & 50–950 ramp

primary
#27287D
secondary
#AFAD51
accent
#DA4CDC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #27287D

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

Preview Lab → · Contrast checker → · Palette generator →

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