#152F90#152F90

#152F90 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.162 H 266.1°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#152F90
RGBrgb(21, 47, 144)
HSLhsl(227, 75%, 32%)
HSVhsv(227, 85%, 56%)
CMYKcmyk(85.4%, 67.4%, 0%, 43.5%)
CIE-LABlab(24.34, 29.10, -55.88)
CIE-LCHlch(24.34, 63.00, 297.51°)
OKLaboklab(35.91% -0.0111 -0.1619)
OKLCHoklch(35.91% 0.162 266.1)
XYZxyz(6.3580, 4.2053, 26.8568)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F90 #907615
analogous
#156D90 #152F90 #391590
triadic
#152F90 #90152F #2F9015
tetradic
#152F90 #90156D #907615 #159039
square
#152F90 #90156D #907615 #159039
split-complementary
#152F90 #903915 #6D9015
monochromatic
#050C25 #0D1E5B #152F90 #1D40C5 #3D60E3

Accessibility & contrast

On white

11.41
#152F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#152F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F90
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F90#FFFFFF#000000##FFFFFF
##152F901.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004093
Deuteranopia (green-blind)
#00348E
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #152f90;
/* rgb */ color: rgb(21, 47, 144);
/* oklch */ color: oklch(35.9% 0.162 266.1);
Tailwind
colors: {
  custom: {
    50: '#6b67b1',
    500: '#152f90',
    950: '#000000',
  },
}
SCSS
$custom: #152f90;
$custom-light: #6b67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#152f90",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 144
  },
  "hsl": {
    "h": 227.317,
    "s": 74.545,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35907,
    "c": 0.16228,
    "h": 266.1
  },
  "luminance": 0.04206
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #152F90

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

Preview Lab → · Contrast checker → · Palette generator →

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