#152E9F#152E9F

#152E9F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.183 H 266.4°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#152E9F
RGBrgb(21, 46, 159)
HSLhsl(229, 77%, 35%)
HSVhsv(229, 87%, 62%)
CMYKcmyk(86.8%, 71.1%, 0%, 37.6%)
CIE-LABlab(25.61, 35.50, -62.99)
CIE-LCHlch(25.61, 72.31, 299.41°)
OKLaboklab(37.29% -0.0116 -0.1826)
OKLCHoklch(37.29% 0.183 266.4)
XYZxyz(7.5421, 4.6157, 33.2876)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152E9F #9F8615
analogous
#15739F #152E9F #41159F
triadic
#152E9F #9F152E #2E9F15
tetradic
#152E9F #9F1573 #9F8615 #159F41
square
#152E9F #9F1573 #9F8615 #159F41
split-complementary
#152E9F #9F4115 #739F15
monochromatic
#070F33 #0E1E69 #152E9F #1C3ED5 #4864E7

Accessibility & contrast

On white

10.92
#152E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#152E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152E9F
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152E9F#FFFFFF#000000##FFFFFF
##152E9F1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152e9f;
/* rgb */ color: rgb(21, 46, 159);
/* oklch */ color: oklch(37.3% 0.183 266.4);
Tailwind
colors: {
  custom: {
    50: '#7067bd',
    500: '#152e9f',
    950: '#000000',
  },
}
SCSS
$custom: #152e9f;
$custom-light: #7067bd;
$custom-dark: #000000;
JSON
{
  "hex": "#152e9f",
  "rgb": {
    "r": 21,
    "g": 46,
    "b": 159
  },
  "hsl": {
    "h": 229.13,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37291,
    "c": 0.183,
    "h": 266.4
  },
  "luminance": 0.04617
}

Semantic roles & 50–950 ramp

primary
#152E9F
secondary
#C8B148
accent
#D135F3
background
#F7F6FB
surface
#EDEBF7
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #152E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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