#152A6C#152A6C

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

Color values

HEX#152A6C
RGBrgb(21, 42, 108)
HSLhsl(226, 67%, 25%)
HSVhsv(226, 81%, 42%)
CMYKcmyk(80.6%, 61.1%, 0%, 57.6%)
CIE-LABlab(19.63, 18.04, -40.80)
CIE-LCHlch(19.63, 44.61, 293.85°)
OKLaboklab(31.39% -0.0079 -0.1178)
OKLCHoklch(31.39% 0.118 266.2)
XYZxyz(3.8430, 2.8976, 14.5412)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A6C #6C5715
analogous
#15556C #152A6C #2B156C
triadic
#152A6C #6C152A #2A6C15
tetradic
#152A6C #6C1555 #6C5715 #156C2B
square
#152A6C #6C1555 #6C5715 #156C2B
split-complementary
#152A6C #6C2B15 #556C15
monochromatic
#050A1A #0B1639 #152A6C #1F3E9F #2952D2

Accessibility & contrast

On white

13.29
#152A6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152A6C
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A6C#FFFFFF#000000##FFFFFF
##152A6C1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#003B46
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152a6c;
/* rgb */ color: rgb(21, 42, 108);
/* oklch */ color: oklch(31.4% 0.118 266.2);
Tailwind
colors: {
  custom: {
    50: '#626397',
    500: '#152a6c',
    950: '#000000',
  },
}
SCSS
$custom: #152a6c;
$custom-light: #626397;
$custom-dark: #000000;
JSON
{
  "hex": "#152a6c",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 108
  },
  "hsl": {
    "h": 225.517,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31386,
    "c": 0.11807,
    "h": 266.2
  },
  "luminance": 0.02898
}

Semantic roles & 50–950 ramp

primary
#152A6C
secondary
#A3893A
accent
#C13DEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #152A6C

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

Preview Lab → · Contrast checker → · Palette generator →

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