#152A63#152A63

#152A63 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.6% C 0.105 H 265.3°. Best body text is #FFFFFF at 13.61:1 contrast (WCAG AA passes).

Color values

HEX#152A63
RGBrgb(21, 42, 99)
HSLhsl(224, 65%, 24%)
HSVhsv(224, 79%, 39%)
CMYKcmyk(78.8%, 57.6%, 0%, 61.2%)
CIE-LABlab(18.87, 14.27, -36.16)
CIE-LCHlch(18.87, 38.88, 291.53°)
OKLaboklab(30.57% -0.0085 -0.1042)
OKLCHoklch(30.57% 0.105 265.3)
XYZxyz(3.3886, 2.7158, 12.1476)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A63 #634E15
analogous
#155163 #152A63 #271563
triadic
#152A63 #63152A #2A6315
tetradic
#152A63 #631551 #634E15 #156327
square
#152A63 #631551 #634E15 #156327
split-complementary
#152A63 #632715 #516315
monochromatic
#050B19 #0A1531 #152A63 #203F95 #2A55C8

Accessibility & contrast

On white

13.61
#152A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#152A63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A63
13.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A63#FFFFFF#000000##FFFFFF
##152A631.0013.611.5413.61
#FFFFFF13.611.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152a63;
/* rgb */ color: rgb(21, 42, 99);
/* oklch */ color: oklch(30.6% 0.105 265.3);
Tailwind
colors: {
  custom: {
    50: '#5f6390',
    500: '#152a63',
    950: '#000000',
  },
}
SCSS
$custom: #152a63;
$custom-light: #5f6390;
$custom-dark: #000000;
JSON
{
  "hex": "#152a63",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 99
  },
  "hsl": {
    "h": 223.846,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30574,
    "c": 0.10452,
    "h": 265.3
  },
  "luminance": 0.02716
}

Semantic roles & 50–950 ramp

primary
#152A63
secondary
#9A803A
accent
#BB40E8
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #152A63

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

Preview Lab → · Contrast checker → · Palette generator →

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