#152B7C#152B7C

#152B7C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.140 H 266.6°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#152B7C
RGBrgb(21, 43, 124)
HSLhsl(227, 71%, 28%)
HSVhsv(227, 83%, 49%)
CMYKcmyk(83.1%, 65.3%, 0%, 51.4%)
CIE-LABlab(21.36, 23.89, -48.23)
CIE-LCHlch(21.36, 53.82, 296.35°)
OKLaboklab(33.13% -0.0084 -0.1396)
OKLCHoklch(33.13% 0.14 266.6)
XYZxyz(4.8100, 3.3419, 19.4564)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152B7C #7C6615
analogous
#155E7C #152B7C #32157C
triadic
#152B7C #7C152B #2B7C15
tetradic
#152B7C #7C155E #7C6615 #157C32
square
#152B7C #7C155E #7C6615 #157C32
split-complementary
#152B7C #7C3215 #5E7C15
monochromatic
#04091A #0C1948 #152B7C #1E3DB0 #3054DC

Accessibility & contrast

On white

12.59
#152B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#152B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152B7C
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152B7C#FFFFFF#000000##FFFFFF
##152B7C1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152b7c;
/* rgb */ color: rgb(21, 43, 124);
/* oklch */ color: oklch(33.1% 0.140 266.6);
Tailwind
colors: {
  custom: {
    50: '#6664a3',
    500: '#152b7c',
    950: '#000000',
  },
}
SCSS
$custom: #152b7c;
$custom-light: #6664a3;
$custom-dark: #000000;
JSON
{
  "hex": "#152b7c",
  "rgb": {
    "r": 21,
    "g": 43,
    "b": 124
  },
  "hsl": {
    "h": 227.184,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33128,
    "c": 0.13982,
    "h": 266.6
  },
  "luminance": 0.03342
}

Semantic roles & 50–950 ramp

primary
#152B7C
secondary
#B1983C
accent
#C73AEE
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #152B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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