#152D6E#152D6E

#152D6E is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.2% C 0.117 H 265.0°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#152D6E
RGBrgb(21, 45, 110)
HSLhsl(224, 68%, 26%)
HSVhsv(224, 81%, 43%)
CMYKcmyk(80.9%, 59.1%, 0%, 56.9%)
CIE-LABlab(20.68, 16.70, -40.39)
CIE-LCHlch(20.68, 43.70, 292.46°)
OKLaboklab(32.23% -0.0101 -0.1165)
OKLCHoklch(32.23% 0.117 265)
XYZxyz(4.0611, 3.1615, 15.1450)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152D6E #6E5615
analogous
#15596E #152D6E #29156E
triadic
#152D6E #6E152D #2D6E15
tetradic
#152D6E #6E1559 #6E5615 #156E29
square
#152D6E #6E1559 #6E5615 #156E29
split-complementary
#152D6E #6E2915 #596E15
monochromatic
#050B1A #0B183B #152D6E #1F42A1 #2957D5

Accessibility & contrast

On white

12.86
#152D6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#152D6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152D6E
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152D6E#FFFFFF#000000##FFFFFF
##152D6E1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#003D48
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #152d6e;
/* rgb */ color: rgb(21, 45, 110);
/* oklch */ color: oklch(32.2% 0.117 265.0);
Tailwind
colors: {
  custom: {
    50: '#626598',
    500: '#152d6e',
    950: '#000000',
  },
}
SCSS
$custom: #152d6e;
$custom-light: #626598;
$custom-dark: #000000;
JSON
{
  "hex": "#152d6e",
  "rgb": {
    "r": 21,
    "g": 45,
    "b": 110
  },
  "hsl": {
    "h": 223.82,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32229,
    "c": 0.11697,
    "h": 265
  },
  "luminance": 0.03162
}

Semantic roles & 50–950 ramp

primary
#152D6E
secondary
#A4883A
accent
#BC3DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #152D6E

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

Preview Lab → · Contrast checker → · Palette generator →

#152D6E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva