#152A8F#152A8F

#152A8F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.167 H 267.0°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#152A8F
RGBrgb(21, 42, 143)
HSLhsl(230, 74%, 32%)
HSVhsv(230, 85%, 56%)
CMYKcmyk(85.3%, 70.6%, 0%, 43.9%)
CIE-LABlab(22.99, 32.05, -57.48)
CIE-LCHlch(22.99, 65.81, 299.14°)
OKLaboklab(34.89% -0.0088 -0.1666)
OKLCHoklch(34.89% 0.167 267)
XYZxyz(6.0934, 3.7978, 26.3932)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152A8F #8F7A15
analogous
#15678F #152A8F #3D158F
triadic
#152A8F #8F152A #2A8F15
tetradic
#152A8F #8F1567 #8F7A15 #158F3D
square
#152A8F #8F1567 #8F7A15 #158F3D
split-complementary
#152A8F #8F3D15 #678F15
monochromatic
#050B24 #0D1A5A #152A8F #1D3AC4 #3C59E2

Accessibility & contrast

On white

11.93
#152A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#152A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152A8F
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152A8F#FFFFFF#000000##FFFFFF
##152A8F1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #152a8f;
/* rgb */ color: rgb(21, 42, 143);
/* oklch */ color: oklch(34.9% 0.167 267.0);
Tailwind
colors: {
  custom: {
    50: '#6c63b1',
    500: '#152a8f',
    950: '#000000',
  },
}
SCSS
$custom: #152a8f;
$custom-light: #6c63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#152a8f",
  "rgb": {
    "r": 21,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 229.672,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34893,
    "c": 0.16681,
    "h": 267
  },
  "luminance": 0.03799
}

Semantic roles & 50–950 ramp

primary
#152A8F
secondary
#C2AB3E
accent
#D137F1
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #152A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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