#15277E#15277E

#15277E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.148 H 267.6°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#15277E
RGBrgb(21, 39, 126)
HSLhsl(230, 71%, 29%)
HSVhsv(230, 83%, 49%)
CMYKcmyk(83.3%, 69%, 0%, 50.6%)
CIE-LABlab(20.50, 27.46, -50.91)
CIE-LCHlch(20.50, 57.84, 298.35°)
OKLaboklab(32.56% -0.0063 -0.1474)
OKLCHoklch(32.56% 0.148 267.6)
XYZxyz(4.7994, 3.1163, 20.0832)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#15277E #7E6C15
analogous
#155C7E #15277E #38157E
triadic
#15277E #7E1527 #277E15
tetradic
#15277E #7E155C #7E6C15 #157E38
square
#15277E #7E155C #7E6C15 #157E38
split-complementary
#15277E #7E3815 #5C7E15
monochromatic
#04081A #0C174A #15277E #1E37B2 #314EDD

Accessibility & contrast

On white

12.94
#15277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#15277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #15277E
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##15277E#FFFFFF#000000##FFFFFF
##15277E1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #15277e;
/* rgb */ color: rgb(21, 39, 126);
/* oklch */ color: oklch(32.6% 0.148 267.6);
Tailwind
colors: {
  custom: {
    50: '#6761a4',
    500: '#15277e',
    950: '#000000',
  },
}
SCSS
$custom: #15277e;
$custom-light: #6761a4;
$custom-dark: #000000;
JSON
{
  "hex": "#15277e",
  "rgb": {
    "r": 21,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 229.714,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32555,
    "c": 0.14758,
    "h": 267.6
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#15277E
secondary
#B39F3C
accent
#CF3AEE
background
#F6F5FA
surface
#EBE9F4
border
#C6C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #15277E

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

Preview Lab → · Contrast checker → · Palette generator →

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