#152F9F#152F9F

#152F9F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.182 H 266.2°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#152F9F
RGBrgb(21, 47, 159)
HSLhsl(229, 77%, 35%)
HSVhsv(229, 87%, 62%)
CMYKcmyk(86.8%, 70.4%, 0%, 37.6%)
CIE-LABlab(25.85, 34.86, -62.60)
CIE-LCHlch(25.85, 71.65, 299.11°)
OKLaboklab(37.46% -0.0119 -0.1815)
OKLCHoklch(37.46% 0.182 266.2)
XYZxyz(7.5816, 4.6947, 33.3007)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F9F #9F8515
analogous
#15749F #152F9F #40159F
triadic
#152F9F #9F152F #2F9F15
tetradic
#152F9F #9F1574 #9F8515 #159F40
square
#152F9F #9F1574 #9F8515 #159F40
split-complementary
#152F9F #9F4015 #749F15
monochromatic
#070F33 #0E1F69 #152F9F #1C3FD5 #4866E7

Accessibility & contrast

On white

10.83
#152F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#152F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F9F
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F9F#FFFFFF#000000##FFFFFF
##152F9F1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #152f9f;
/* rgb */ color: rgb(21, 47, 159);
/* oklch */ color: oklch(37.5% 0.182 266.2);
Tailwind
colors: {
  custom: {
    50: '#7067bd',
    500: '#152f9f',
    950: '#000000',
  },
}
SCSS
$custom: #152f9f;
$custom-light: #7067bd;
$custom-dark: #000000;
JSON
{
  "hex": "#152f9f",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 228.696,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37462,
    "c": 0.18189,
    "h": 266.2
  },
  "luminance": 0.04696
}

Semantic roles & 50–950 ramp

primary
#152F9F
secondary
#C8B048
accent
#CF35F3
background
#F7F6FB
surface
#EDEBF7
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #152F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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