#152A62#152A62

#152A62 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.5% C 0.103 H 265.2°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#152A62
RGBrgb(21, 42, 98)
HSLhsl(224, 65%, 23%)
HSVhsv(224, 79%, 38%)
CMYKcmyk(78.6%, 57.1%, 0%, 61.6%)
CIE-LABlab(18.79, 13.85, -35.64)
CIE-LCHlch(18.79, 38.24, 291.24°)
OKLaboklab(30.49% -0.0086 -0.1026)
OKLCHoklch(30.49% 0.103 265.2)
XYZxyz(3.3411, 2.6968, 11.8974)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A62 #624D15
analogous
#155062 #152A62 #261562
triadic
#152A62 #62152A #2A6215
tetradic
#152A62 #621550 #624D15 #156226
square
#152A62 #621550 #624D15 #156226
split-complementary
#152A62 #622615 #506215
monochromatic
#050B19 #0A1430 #152A62 #204094 #2B55C7

Accessibility & contrast

On white

13.64
#152A62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#152A62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A62
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A62#FFFFFF#000000##FFFFFF
##152A621.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023164
Deuteranopia (green-blind)
#002A61
Tritanopia (blue-blind)
#003841
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #152a62;
/* rgb */ color: rgb(21, 42, 98);
/* oklch */ color: oklch(30.5% 0.103 265.2);
Tailwind
colors: {
  custom: {
    50: '#5f638f',
    500: '#152a62',
    950: '#000000',
  },
}
SCSS
$custom: #152a62;
$custom-light: #5f638f;
$custom-dark: #000000;
JSON
{
  "hex": "#152a62",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 98
  },
  "hsl": {
    "h": 223.636,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30487,
    "c": 0.10299,
    "h": 265.2
  },
  "luminance": 0.02697
}

Semantic roles & 50–950 ramp

primary
#152A62
secondary
#997F3A
accent
#BA40E8
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #152A62

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

Preview Lab → · Contrast checker → · Palette generator →

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