#27287E#27287E

#27287E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.141 H 275.2°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#27287E
RGBrgb(39, 40, 126)
HSLhsl(239, 53%, 32%)
HSVhsv(239, 69%, 49%)
CMYKcmyk(69%, 68.3%, 0%, 50.6%)
CIE-LABlab(21.78, 28.89, -48.78)
CIE-LCHlch(21.78, 56.69, 300.64°)
OKLaboklab(33.76% 0.0129 -0.1408)
OKLCHoklch(33.76% 0.141 275.2)
XYZxyz(5.3601, 3.4548, 20.1190)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27287E #7E7D27
analogous
#27547E #27287E #51277E
triadic
#27287E #7E2728 #287E27
tetradic
#27287E #7E2754 #7E7D27 #277E51
square
#27287E #7E2754 #7E7D27 #277E51
split-complementary
#27287E #7E5127 #547E27
monochromatic
#0A0A21 #19194F #27287E #3537AD #5556CA

Accessibility & contrast

On white

12.42
#27287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #27287E
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27287E#FFFFFF#000000##FFFFFF
##27287E1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #27287e;
/* rgb */ color: rgb(39, 40, 126);
/* oklch */ color: oklch(33.8% 0.141 275.2);
Tailwind
colors: {
  custom: {
    50: '#6d62a4',
    500: '#27287e',
    950: '#000000',
  },
}
SCSS
$custom: #27287e;
$custom-light: #6d62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#27287e",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 239.31,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33762,
    "c": 0.14136,
    "h": 275.2
  },
  "luminance": 0.03455
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #27287E

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

Preview Lab → · Contrast checker → · Palette generator →

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