#152A60#152A60

#152A60 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.3% C 0.100 H 265.0°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#152A60
RGBrgb(21, 42, 96)
HSLhsl(223, 64%, 23%)
HSVhsv(223, 78%, 38%)
CMYKcmyk(78.1%, 56.3%, 0%, 62.4%)
CIE-LABlab(18.63, 13.00, -34.58)
CIE-LCHlch(18.63, 36.95, 290.61°)
OKLaboklab(30.31% -0.0088 -0.0995)
OKLCHoklch(30.31% 0.1 265)
XYZxyz(3.2478, 2.6595, 11.4062)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A60 #604B15
analogous
#154F60 #152A60 #251560
triadic
#152A60 #60152A #2A6015
tetradic
#152A60 #60154F #604B15 #156025
square
#152A60 #60154F #604B15 #156025
split-complementary
#152A60 #602515 #4F6015
monochromatic
#050B19 #0A142E #152A60 #204092 #2B56C4

Accessibility & contrast

On white

13.71
#152A60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152A60
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A60#FFFFFF#000000##FFFFFF
##152A601.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152a60;
/* rgb */ color: rgb(21, 42, 96);
/* oklch */ color: oklch(30.3% 0.100 265.0);
Tailwind
colors: {
  custom: {
    50: '#5e638e',
    500: '#152a60',
    950: '#000000',
  },
}
SCSS
$custom: #152a60;
$custom-light: #5e638e;
$custom-dark: #000000;
JSON
{
  "hex": "#152a60",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 96
  },
  "hsl": {
    "h": 223.2,
    "s": 64.103,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30314,
    "c": 0.09991,
    "h": 265
  },
  "luminance": 0.0266
}

Semantic roles & 50–950 ramp

primary
#152A60
secondary
#977D3A
accent
#B941E7
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #152A60

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

Preview Lab → · Contrast checker → · Palette generator →

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