#152A6B#152A6B

#152A6B is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.3% C 0.117 H 266.1°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#152A6B
RGBrgb(21, 42, 107)
HSLhsl(225, 67%, 25%)
HSVhsv(225, 80%, 42%)
CMYKcmyk(80.4%, 60.7%, 0%, 58%)
CIE-LABlab(19.54, 17.62, -40.29)
CIE-LCHlch(19.54, 43.98, 293.62°)
OKLaboklab(31.29% -0.0079 -0.1163)
OKLCHoklch(31.29% 0.117 266.1)
XYZxyz(3.7901, 2.8765, 14.2625)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A6B #6B5615
analogous
#15556B #152A6B #2B156B
triadic
#152A6B #6B152A #2A6B15
tetradic
#152A6B #6B1555 #6B5615 #156B2B
square
#152A6B #6B1555 #6B5615 #156B2B
split-complementary
#152A6B #6B2B15 #556B15
monochromatic
#050A1A #0B1638 #152A6B #1F3E9E #2952D1

Accessibility & contrast

On white

13.33
#152A6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152A6B
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A6B#FFFFFF#000000##FFFFFF
##152A6B1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336D
Deuteranopia (green-blind)
#002B6A
Tritanopia (blue-blind)
#003A46
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152a6b;
/* rgb */ color: rgb(21, 42, 107);
/* oklch */ color: oklch(31.3% 0.117 266.1);
Tailwind
colors: {
  custom: {
    50: '#616396',
    500: '#152a6b',
    950: '#000000',
  },
}
SCSS
$custom: #152a6b;
$custom-light: #616396;
$custom-dark: #000000;
JSON
{
  "hex": "#152a6b",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 107
  },
  "hsl": {
    "h": 225.349,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31294,
    "c": 0.11658,
    "h": 266.1
  },
  "luminance": 0.02877
}

Semantic roles & 50–950 ramp

primary
#152A6B
secondary
#A2883A
accent
#C03EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #152A6B

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

Preview Lab → · Contrast checker → · Palette generator →

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