#152B62#152B62

#152B62 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.7% C 0.102 H 264.7°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#152B62
RGBrgb(21, 43, 98)
HSLhsl(223, 65%, 23%)
HSVhsv(223, 79%, 38%)
CMYKcmyk(78.6%, 56.1%, 0%, 61.6%)
CIE-LABlab(19.09, 13.11, -35.14)
CIE-LCHlch(19.09, 37.51, 290.46°)
OKLaboklab(30.72% -0.0095 -0.1011)
OKLCHoklch(30.72% 0.102 264.7)
XYZxyz(3.3770, 2.7687, 11.9093)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B62 #624C15
analogous
#155162 #152B62 #251562
triadic
#152B62 #62152B #2B6215
tetradic
#152B62 #621551 #624C15 #156225
square
#152B62 #621551 #624C15 #156225
split-complementary
#152B62 #622515 #516215
monochromatic
#050B19 #0A1530 #152B62 #204194 #2B57C7

Accessibility & contrast

On white

13.52
#152B62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#152B62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B62
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B62#FFFFFF#000000##FFFFFF
##152B621.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053264
Deuteranopia (green-blind)
#002B61
Tritanopia (blue-blind)
#003842
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #152b62;
/* rgb */ color: rgb(21, 43, 98);
/* oklch */ color: oklch(30.7% 0.102 264.7);
Tailwind
colors: {
  custom: {
    50: '#5f638f',
    500: '#152b62',
    950: '#000000',
  },
}
SCSS
$custom: #152b62;
$custom-light: #5f638f;
$custom-dark: #000000;
JSON
{
  "hex": "#152b62",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 98
  },
  "hsl": {
    "h": 222.857,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30719,
    "c": 0.10159,
    "h": 264.7
  },
  "luminance": 0.02769
}

Semantic roles & 50–950 ramp

primary
#152B62
secondary
#997E3A
accent
#B840E8
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #152B62

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

Preview Lab → · Contrast checker → · Palette generator →

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