#152A6E#152A6E

#152A6E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.6% C 0.121 H 266.3°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#152A6E
RGBrgb(21, 42, 110)
HSLhsl(226, 68%, 26%)
HSVhsv(226, 81%, 43%)
CMYKcmyk(80.9%, 61.8%, 0%, 56.9%)
CIE-LABlab(19.80, 18.87, -41.81)
CIE-LCHlch(19.80, 45.87, 294.29°)
OKLaboklab(31.57% -0.0078 -0.1208)
OKLCHoklch(31.57% 0.121 266.3)
XYZxyz(3.9507, 2.9407, 15.1082)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A6E #6E5915
analogous
#15566E #152A6E #2C156E
triadic
#152A6E #6E152A #2A6E15
tetradic
#152A6E #6E1556 #6E5915 #156E2C
square
#152A6E #6E1556 #6E5915 #156E2C
split-complementary
#152A6E #6E2C15 #566E15
monochromatic
#050A1A #0B163B #152A6E #1F3EA1 #2951D5

Accessibility & contrast

On white

13.22
#152A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#152A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A6E
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A6E#FFFFFF#000000##FFFFFF
##152A6E1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#003B47
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #152a6e;
/* rgb */ color: rgb(21, 42, 110);
/* oklch */ color: oklch(31.6% 0.121 266.3);
Tailwind
colors: {
  custom: {
    50: '#626398',
    500: '#152a6e',
    950: '#000000',
  },
}
SCSS
$custom: #152a6e;
$custom-light: #626398;
$custom-dark: #000000;
JSON
{
  "hex": "#152a6e",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 110
  },
  "hsl": {
    "h": 225.843,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31573,
    "c": 0.12101,
    "h": 266.3
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#152A6E
secondary
#A48B3A
accent
#C23DEB
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #152A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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