#27288B#27288B

#27288B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.1% C 0.159 H 274.1°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#27288B
RGBrgb(39, 40, 139)
HSLhsl(239, 56%, 35%)
HSVhsv(239, 72%, 55%)
CMYKcmyk(71.9%, 71.2%, 0%, 45.5%)
CIE-LABlab(23.04, 33.58, -54.87)
CIE-LCHlch(23.04, 64.33, 301.46°)
OKLaboklab(35.06% 0.0113 -0.1586)
OKLCHoklch(35.06% 0.159 274.1)
XYZxyz(6.2541, 3.8124, 24.8274)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#27288B #8B8A27
analogous
#275A8B #27288B #58278B
triadic
#27288B #8B2728 #288B27
tetradic
#27288B #8B275A #8B8A27 #278B58
square
#27288B #8B275A #8B8A27 #278B58
split-complementary
#27288B #8B5827 #5A8B27
monochromatic
#0C0C2B #1A1A5B #27288B #3436BB #5B5DD1

Accessibility & contrast

On white

11.91
#27288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#27288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #27288B
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##27288B#FFFFFF#000000##FFFFFF
##27288B1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#004356
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #27288b;
/* rgb */ color: rgb(39, 40, 139);
/* oklch */ color: oklch(35.1% 0.159 274.1);
Tailwind
colors: {
  custom: {
    50: '#7163ae',
    500: '#27288b',
    950: '#000000',
  },
}
SCSS
$custom: #27288b;
$custom-light: #7163ae;
$custom-dark: #000000;
JSON
{
  "hex": "#27288b",
  "rgb": {
    "r": 39,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 239.4,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35059,
    "c": 0.15901,
    "h": 274.1
  },
  "luminance": 0.03813
}

Semantic roles & 50–950 ramp

primary
#27288B
secondary
#B6B558
accent
#DE48DF
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #27288B

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

Preview Lab → · Contrast checker → · Palette generator →

#27288B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva