#27287F#27287F

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

Color values

HEX#27287F
RGBrgb(39, 40, 127)
HSLhsl(239, 53%, 33%)
HSVhsv(239, 69%, 50%)
CMYKcmyk(69.3%, 68.5%, 0%, 50.2%)
CIE-LABlab(21.87, 29.26, -49.25)
CIE-LCHlch(21.87, 57.29, 300.71°)
OKLaboklab(33.86% 0.0128 -0.1422)
OKLCHoklch(33.86% 0.143 275.2)
XYZxyz(5.4250, 3.4807, 20.4605)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27287F #7F7E27
analogous
#27547F #27287F #52277F
triadic
#27287F #7F2728 #287F27
tetradic
#27287F #7F2754 #7F7E27 #277F52
square
#27287F #7F2754 #7F7E27 #277F52
split-complementary
#27287F #7F5227 #547F27
monochromatic
#0A0B21 #191950 #27287F #3537AE #5557CB

Accessibility & contrast

On white

12.38
#27287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#27287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27287F
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27287F#FFFFFF#000000##FFFFFF
##27287F1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#003F50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #27287f;
/* rgb */ color: rgb(39, 40, 127);
/* oklch */ color: oklch(33.9% 0.143 275.2);
Tailwind
colors: {
  custom: {
    50: '#6e62a5',
    500: '#27287f',
    950: '#000000',
  },
}
SCSS
$custom: #27287f;
$custom-light: #6e62a5;
$custom-dark: #000000;
JSON
{
  "hex": "#27287f",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 239.318,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33859,
    "c": 0.14275,
    "h": 275.2
  },
  "luminance": 0.03481
}

Semantic roles & 50–950 ramp

primary
#27287F
secondary
#B0AF52
accent
#DB4BDC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #27287F

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

Preview Lab → · Contrast checker → · Palette generator →

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