#152A6D#152A6D

#152A6D is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.5% C 0.120 H 266.2°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#152A6D
RGBrgb(21, 42, 109)
HSLhsl(226, 68%, 25%)
HSVhsv(226, 81%, 43%)
CMYKcmyk(80.7%, 61.5%, 0%, 57.3%)
CIE-LABlab(19.72, 18.46, -41.31)
CIE-LCHlch(19.72, 45.24, 294.08°)
OKLaboklab(31.48% -0.0079 -0.1193)
OKLCHoklch(31.48% 0.12 266.2)
XYZxyz(3.8966, 2.9190, 14.8231)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A6D #6D5815
analogous
#15566D #152A6D #2C156D
triadic
#152A6D #6D152A #2A6D15
tetradic
#152A6D #6D1556 #6D5815 #156D2C
square
#152A6D #6D1556 #6D5815 #156D2C
split-complementary
#152A6D #6D2C15 #566D15
monochromatic
#050A1A #0B163A #152A6D #1F3EA0 #2952D4

Accessibility & contrast

On white

13.26
#152A6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#152A6D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A6D
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A6D#FFFFFF#000000##FFFFFF
##152A6D1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#003B47
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #152a6d;
/* rgb */ color: rgb(21, 42, 109);
/* oklch */ color: oklch(31.5% 0.120 266.2);
Tailwind
colors: {
  custom: {
    50: '#626397',
    500: '#152a6d',
    950: '#000000',
  },
}
SCSS
$custom: #152a6d;
$custom-light: #626397;
$custom-dark: #000000;
JSON
{
  "hex": "#152a6d",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 109
  },
  "hsl": {
    "h": 225.682,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31479,
    "c": 0.11954,
    "h": 266.2
  },
  "luminance": 0.02919
}

Semantic roles & 50–950 ramp

primary
#152A6D
secondary
#A38A3A
accent
#C13DEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152A6D

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

Preview Lab → · Contrast checker → · Palette generator →

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