#152F74#152F74

#152F74 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.2% C 0.123 H 264.8°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#152F74
RGBrgb(21, 47, 116)
HSLhsl(224, 69%, 27%)
HSVhsv(224, 82%, 45%)
CMYKcmyk(81.9%, 59.5%, 0%, 54.5%)
CIE-LABlab(21.77, 17.76, -42.46)
CIE-LCHlch(21.77, 46.03, 292.69°)
OKLaboklab(33.21% -0.0113 -0.1226)
OKLCHoklch(33.21% 0.123 264.8)
XYZxyz(4.4770, 3.4529, 16.9501)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F74 #745A15
analogous
#155F74 #152F74 #2B1574
triadic
#152F74 #74152F #2F7415
tetradic
#152F74 #74155F #745A15 #15742B
square
#152F74 #74155F #745A15 #15742B
split-complementary
#152F74 #742B15 #5F7415
monochromatic
#050A1A #0C1A40 #152F74 #1E44A8 #2B5AD9

Accessibility & contrast

On white

12.42
#152F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#152F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F74
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F74#FFFFFF#000000##FFFFFF
##152F741.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003976
Deuteranopia (green-blind)
#003073
Tritanopia (blue-blind)
#00404C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #152f74;
/* rgb */ color: rgb(21, 47, 116);
/* oklch */ color: oklch(33.2% 0.123 264.8);
Tailwind
colors: {
  custom: {
    50: '#63679d',
    500: '#152f74',
    950: '#000000',
  },
}
SCSS
$custom: #152f74;
$custom-light: #63679d;
$custom-dark: #000000;
JSON
{
  "hex": "#152f74",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 223.579,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.33211,
    "c": 0.12312,
    "h": 264.8
  },
  "luminance": 0.03453
}

Semantic roles & 50–950 ramp

primary
#152F74
secondary
#AA8C3B
accent
#BC3CEC
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #152F74

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

Preview Lab → · Contrast checker → · Palette generator →

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