#152A48#152A48

#152A48 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.4% C 0.062 H 257.5°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#152A48
RGBrgb(21, 42, 72)
HSLhsl(215, 55%, 18%)
HSVhsv(215, 71%, 28%)
CMYKcmyk(70.8%, 41.7%, 0%, 71.8%)
CIE-LABlab(16.91, 2.92, -21.22)
CIE-LCHlch(16.91, 21.42, 277.82°)
OKLaboklab(28.44% -0.0134 -0.0603)
OKLCHoklch(28.44% 0.062 257.5)
XYZxyz(2.3065, 2.2830, 6.4487)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A48 #483315
analogous
#154348 #152A48 #191548
triadic
#152A48 #48152A #2A4815
tetradic
#152A48 #481543 #483315 #154819
square
#152A48 #481543 #483315 #154819
split-complementary
#152A48 #481915 #434815
monochromatic
#070E18 #070E19 #152A48 #234677 #3161A7

Accessibility & contrast

On white

14.42
#152A48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#152A48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A48
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A48#FFFFFF#000000##FFFFFF
##152A481.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D2C49
Deuteranopia (green-blind)
#162747
Tritanopia (blue-blind)
#003135
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #152a48;
/* rgb */ color: rgb(21, 42, 72);
/* oklch */ color: oklch(28.4% 0.062 257.5);
Tailwind
colors: {
  custom: {
    50: '#58637b',
    500: '#152a48',
    950: '#000000',
  },
}
SCSS
$custom: #152a48;
$custom-light: #58637b;
$custom-dark: #000000;
JSON
{
  "hex": "#152a48",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 72
  },
  "hsl": {
    "h": 215.294,
    "s": 54.839,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28442,
    "c": 0.06173,
    "h": 257.5
  },
  "luminance": 0.02283
}

Semantic roles & 50–950 ramp

primary
#152A48
secondary
#806339
accent
#A14ADE
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#040509
muted
#79797B

Preview Lab

Preview with #152A48

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

Preview Lab → · Contrast checker → · Palette generator →

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