#152A4F#152A4F

#152A4F is a dark, moderate blue. Relative luminance 0.024; OKLCH L 28.9% C 0.073 H 260.9°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#152A4F
RGBrgb(21, 42, 79)
HSLhsl(218, 58%, 20%)
HSVhsv(218, 73%, 31%)
CMYKcmyk(73.4%, 46.8%, 0%, 69%)
CIE-LABlab(17.37, 5.83, -25.25)
CIE-LCHlch(17.37, 25.92, 282.99°)
OKLaboklab(28.95% -0.0116 -0.0721)
OKLCHoklch(28.95% 0.073 260.9)
XYZxyz(2.5480, 2.3796, 7.7207)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A4F #4F3A15
analogous
#15474F #152A4F #1D154F
triadic
#152A4F #4F152A #2A4F15
tetradic
#152A4F #4F1547 #4F3A15 #154F1D
square
#152A4F #4F1547 #4F3A15 #154F1D
split-complementary
#152A4F #4F1D15 #474F15
monochromatic
#060D18 #08101F #152A4F #22447F #2F5DB0

Accessibility & contrast

On white

14.23
#152A4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#152A4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A4F
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A4F#FFFFFF#000000##FFFFFF
##152A4F1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192E50
Deuteranopia (green-blind)
#0F284E
Tritanopia (blue-blind)
#003338
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #152a4f;
/* rgb */ color: rgb(21, 42, 79);
/* oklch */ color: oklch(28.9% 0.073 260.9);
Tailwind
colors: {
  custom: {
    50: '#5a6380',
    500: '#152a4f',
    950: '#000000',
  },
}
SCSS
$custom: #152a4f;
$custom-light: #5a6380;
$custom-dark: #000000;
JSON
{
  "hex": "#152a4f",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 79
  },
  "hsl": {
    "h": 218.276,
    "s": 58,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28946,
    "c": 0.07301,
    "h": 260.9
  },
  "luminance": 0.0238
}

Semantic roles & 50–950 ramp

primary
#152A4F
secondary
#876B39
accent
#A947E1
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #152A4F

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

Preview Lab → · Contrast checker → · Palette generator →

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