#152A54#152A54

#152A54 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.3% C 0.081 H 262.5°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#152A54
RGBrgb(21, 42, 84)
HSLhsl(220, 60%, 21%)
HSVhsv(220, 75%, 33%)
CMYKcmyk(75%, 50%, 0%, 67.1%)
CIE-LABlab(17.71, 7.93, -28.06)
CIE-LCHlch(17.71, 29.16, 285.78°)
OKLaboklab(29.33% -0.0105 -0.0803)
OKLCHoklch(29.33% 0.081 262.5)
XYZxyz(2.7369, 2.4552, 8.7154)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A54 #543F15
analogous
#154954 #152A54 #1F1554
triadic
#152A54 #54152A #2A5415
tetradic
#152A54 #541549 #543F15 #15541F
square
#152A54 #541549 #543F15 #15541F
split-complementary
#152A54 #541F15 #495415
monochromatic
#060C18 #091223 #152A54 #214285 #2D5BB6

Accessibility & contrast

On white

14.08
#152A54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#152A54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A54
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A54#FFFFFF#000000##FFFFFF
##152A541.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152E56
Deuteranopia (green-blind)
#082953
Tritanopia (blue-blind)
#00343A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #152a54;
/* rgb */ color: rgb(21, 42, 84);
/* oklch */ color: oklch(29.3% 0.081 262.5);
Tailwind
colors: {
  custom: {
    50: '#5b6384',
    500: '#152a54',
    950: '#000000',
  },
}
SCSS
$custom: #152a54;
$custom-light: #5b6384;
$custom-dark: #000000;
JSON
{
  "hex": "#152a54",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 84
  },
  "hsl": {
    "h": 220,
    "s": 60,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29328,
    "c": 0.08103,
    "h": 262.5
  },
  "luminance": 0.02455
}

Semantic roles & 50–950 ramp

primary
#152A54
secondary
#8C7039
accent
#AE45E3
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #152A54

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

Preview Lab → · Contrast checker → · Palette generator →

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