#152A7C#152A7C

#152A7C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.141 H 266.8°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#152A7C
RGBrgb(21, 42, 124)
HSLhsl(228, 71%, 28%)
HSVhsv(228, 83%, 49%)
CMYKcmyk(83.1%, 66.1%, 0%, 51.4%)
CIE-LABlab(21.09, 24.59, -48.67)
CIE-LCHlch(21.09, 54.53, 296.81°)
OKLaboklab(32.93% -0.0078 -0.1409)
OKLCHoklch(32.93% 0.141 266.8)
XYZxyz(4.7740, 3.2700, 19.4444)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A7C #7C6715
analogous
#155D7C #152A7C #33157C
triadic
#152A7C #7C152A #2A7C15
tetradic
#152A7C #7C155D #7C6715 #157C33
square
#152A7C #7C155D #7C6715 #157C33
split-complementary
#152A7C #7C3315 #5D7C15
monochromatic
#04091A #0C1848 #152A7C #1E3CB0 #3053DC

Accessibility & contrast

On white

12.69
#152A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#152A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A7C
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A7C#FFFFFF#000000##FFFFFF
##152A7C1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152a7c;
/* rgb */ color: rgb(21, 42, 124);
/* oklch */ color: oklch(32.9% 0.141 266.8);
Tailwind
colors: {
  custom: {
    50: '#6663a3',
    500: '#152a7c',
    950: '#000000',
  },
}
SCSS
$custom: #152a7c;
$custom-light: #6663a3;
$custom-dark: #000000;
JSON
{
  "hex": "#152a7c",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 227.767,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32929,
    "c": 0.1411,
    "h": 266.8
  },
  "luminance": 0.03271
}

Semantic roles & 50–950 ramp

primary
#152A7C
secondary
#B1993C
accent
#C93AEE
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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