#152A64#152A64

#152A64 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.7% C 0.106 H 265.5°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#152A64
RGBrgb(21, 42, 100)
HSLhsl(224, 65%, 24%)
HSVhsv(224, 79%, 39%)
CMYKcmyk(79%, 58%, 0%, 60.8%)
CIE-LABlab(18.95, 14.69, -36.69)
CIE-LCHlch(18.95, 39.52, 291.82°)
OKLaboklab(30.66% -0.0084 -0.1057)
OKLCHoklch(30.66% 0.106 265.5)
XYZxyz(3.4367, 2.7351, 12.4009)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A64 #644F15
analogous
#155164 #152A64 #271564
triadic
#152A64 #64152A #2A6415
tetradic
#152A64 #641551 #644F15 #156427
square
#152A64 #641551 #644F15 #156427
split-complementary
#152A64 #642715 #516415
monochromatic
#050B19 #0A1531 #152A64 #203F97 #2A54C9

Accessibility & contrast

On white

13.57
#152A64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#152A64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A64
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A64#FFFFFF#000000##FFFFFF
##152A641.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003266
Deuteranopia (green-blind)
#002B63
Tritanopia (blue-blind)
#003842
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #152a64;
/* rgb */ color: rgb(21, 42, 100);
/* oklch */ color: oklch(30.7% 0.106 265.5);
Tailwind
colors: {
  custom: {
    50: '#5f6391',
    500: '#152a64',
    950: '#000000',
  },
}
SCSS
$custom: #152a64;
$custom-light: #5f6391;
$custom-dark: #000000;
JSON
{
  "hex": "#152a64",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 100
  },
  "hsl": {
    "h": 224.051,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30662,
    "c": 0.10604,
    "h": 265.5
  },
  "luminance": 0.02735
}

Semantic roles & 50–950 ramp

primary
#152A64
secondary
#9B813A
accent
#BB40E8
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#05050D
muted
#7A797D

Preview Lab

Preview with #152A64

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

Preview Lab → · Contrast checker → · Palette generator →

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