#152A5F#152A5F

#152A5F is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.2% C 0.098 H 264.8°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#152A5F
RGBrgb(21, 42, 95)
HSLhsl(223, 64%, 23%)
HSVhsv(223, 78%, 37%)
CMYKcmyk(77.9%, 55.8%, 0%, 62.7%)
CIE-LABlab(18.55, 12.58, -34.05)
CIE-LCHlch(18.55, 36.30, 290.28°)
OKLaboklab(30.23% -0.0089 -0.098)
OKLCHoklch(30.23% 0.098 264.8)
XYZxyz(3.2021, 2.6412, 11.1653)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A5F #5F4A15
analogous
#154F5F #152A5F #25155F
triadic
#152A5F #5F152A #2A5F15
tetradic
#152A5F #5F154F #5F4A15 #155F25
square
#152A5F #5F154F #5F4A15 #155F25
split-complementary
#152A5F #5F2515 #4F5F15
monochromatic
#060B19 #0A142D #152A5F #204091 #2B56C3

Accessibility & contrast

On white

13.74
#152A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#152A5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A5F
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A5F#FFFFFF#000000##FFFFFF
##152A5F1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073161
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#003740
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #152a5f;
/* rgb */ color: rgb(21, 42, 95);
/* oklch */ color: oklch(30.2% 0.098 264.8);
Tailwind
colors: {
  custom: {
    50: '#5e638d',
    500: '#152a5f',
    950: '#000000',
  },
}
SCSS
$custom: #152a5f;
$custom-light: #5e638d;
$custom-dark: #000000;
JSON
{
  "hex": "#152a5f",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 95
  },
  "hsl": {
    "h": 222.973,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30228,
    "c": 0.09836,
    "h": 264.8
  },
  "luminance": 0.02642
}

Semantic roles & 50–950 ramp

primary
#152A5F
secondary
#967C3A
accent
#B841E7
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #152A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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