#152C64#152C64

#152C64 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.1% C 0.103 H 264.4°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#152C64
RGBrgb(21, 44, 100)
HSLhsl(223, 65%, 24%)
HSVhsv(223, 79%, 39%)
CMYKcmyk(79%, 56%, 0%, 60.8%)
CIE-LABlab(19.56, 13.22, -35.70)
CIE-LCHlch(19.56, 38.07, 290.33°)
OKLaboklab(31.12% -0.0101 -0.1028)
OKLCHoklch(31.12% 0.103 264.4)
XYZxyz(3.5094, 2.8805, 12.4252)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C64 #644D15
analogous
#155364 #152C64 #251564
triadic
#152C64 #64152C #2C6415
tetradic
#152C64 #641553 #644D15 #156425
square
#152C64 #641553 #644D15 #156425
split-complementary
#152C64 #642515 #536415
monochromatic
#050B19 #0A1631 #152C64 #204297 #2A59C9

Accessibility & contrast

On white

13.32
#152C64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#152C64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C64
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C64#FFFFFF#000000##FFFFFF
##152C641.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053366
Deuteranopia (green-blind)
#002C63
Tritanopia (blue-blind)
#003A43
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #152c64;
/* rgb */ color: rgb(21, 44, 100);
/* oklch */ color: oklch(31.1% 0.103 264.4);
Tailwind
colors: {
  custom: {
    50: '#5f6491',
    500: '#152c64',
    950: '#000000',
  },
}
SCSS
$custom: #152c64;
$custom-light: #5f6491;
$custom-dark: #000000;
JSON
{
  "hex": "#152c64",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 100
  },
  "hsl": {
    "h": 222.532,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31123,
    "c": 0.10327,
    "h": 264.4
  },
  "luminance": 0.02881
}

Semantic roles & 50–950 ramp

primary
#152C64
secondary
#9B7F3A
accent
#B740E8
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050D
muted
#79797D

Preview Lab

Preview with #152C64

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

Preview Lab → · Contrast checker → · Palette generator →

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