#152C9F#152C9F

#152C9F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.185 H 266.6°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#152C9F
RGBrgb(21, 44, 159)
HSLhsl(230, 77%, 35%)
HSVhsv(230, 87%, 62%)
CMYKcmyk(86.8%, 72.3%, 0%, 37.6%)
CIE-LABlab(25.15, 36.78, -63.75)
CIE-LCHlch(25.15, 73.60, 299.98°)
OKLaboklab(36.96% -0.0109 -0.1849)
OKLCHoklch(36.96% 0.185 266.6)
XYZxyz(7.4658, 4.4631, 33.2621)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152C9F #9F8815
analogous
#15719F #152C9F #43159F
triadic
#152C9F #9F152C #2C9F15
tetradic
#152C9F #9F1571 #9F8815 #159F43
square
#152C9F #9F1571 #9F8815 #159F43
split-complementary
#152C9F #9F4315 #719F15
monochromatic
#070E33 #0E1D69 #152C9F #1C3BD5 #4862E7

Accessibility & contrast

On white

11.09
#152C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#152C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152C9F
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152C9F#FFFFFF#000000##FFFFFF
##152C9F1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A2
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #152c9f;
/* rgb */ color: rgb(21, 44, 159);
/* oklch */ color: oklch(37.0% 0.185 266.6);
Tailwind
colors: {
  custom: {
    50: '#7065bd',
    500: '#152c9f',
    950: '#000000',
  },
}
SCSS
$custom: #152c9f;
$custom-light: #7065bd;
$custom-dark: #000000;
JSON
{
  "hex": "#152c9f",
  "rgb": {
    "r": 21,
    "g": 44,
    "b": 159
  },
  "hsl": {
    "h": 230,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36956,
    "c": 0.18518,
    "h": 266.6
  },
  "luminance": 0.04464
}

Semantic roles & 50–950 ramp

primary
#152C9F
secondary
#C8B348
accent
#D335F3
background
#F7F6FB
surface
#EDEBF7
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #152C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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