#152E8F#152E8F

#152E8F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.162 H 266.3°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#152E8F
RGBrgb(21, 46, 143)
HSLhsl(228, 74%, 32%)
HSVhsv(228, 85%, 56%)
CMYKcmyk(85.3%, 67.8%, 0%, 43.9%)
CIE-LABlab(23.99, 29.38, -55.84)
CIE-LCHlch(23.99, 63.10, 297.75°)
OKLaboklab(35.62% -0.0106 -0.1618)
OKLCHoklch(35.62% 0.162 266.3)
XYZxyz(6.2424, 4.0958, 26.4428)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152E8F #8F7615
analogous
#156B8F #152E8F #39158F
triadic
#152E8F #8F152E #2E8F15
tetradic
#152E8F #8F156B #8F7615 #158F39
square
#152E8F #8F156B #8F7615 #158F39
split-complementary
#152E8F #8F3915 #6B8F15
monochromatic
#050C24 #0D1D5A #152E8F #1D3FC4 #3C5EE2

Accessibility & contrast

On white

11.54
#152E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#152E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152E8F
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152E8F#FFFFFF#000000##FFFFFF
##152E8F1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #152e8f;
/* rgb */ color: rgb(21, 46, 143);
/* oklch */ color: oklch(35.6% 0.162 266.3);
Tailwind
colors: {
  custom: {
    50: '#6b66b1',
    500: '#152e8f',
    950: '#000000',
  },
}
SCSS
$custom: #152e8f;
$custom-light: #6b66b1;
$custom-dark: #000000;
JSON
{
  "hex": "#152e8f",
  "rgb": {
    "r": 21,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 227.705,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35618,
    "c": 0.16214,
    "h": 266.3
  },
  "luminance": 0.04097
}

Semantic roles & 50–950 ramp

primary
#152E8F
secondary
#C2A73E
accent
#CB37F1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #152E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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