#152F6C#152F6C

#152F6C is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.5% C 0.111 H 263.9°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#152F6C
RGBrgb(21, 47, 108)
HSLhsl(222, 67%, 25%)
HSVhsv(222, 81%, 42%)
CMYKcmyk(80.6%, 56.5%, 0%, 57.6%)
CIE-LABlab(21.11, 14.41, -38.39)
CIE-LCHlch(21.11, 41.01, 290.57°)
OKLaboklab(32.5% -0.0119 -0.1106)
OKLCHoklch(32.5% 0.111 263.9)
XYZxyz(4.0316, 3.2747, 14.6041)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F6C #6C5215
analogous
#155A6C #152F6C #26156C
triadic
#152F6C #6C152F #2F6C15
tetradic
#152F6C #6C155A #6C5215 #156C26
square
#152F6C #6C155A #6C5215 #156C26
split-complementary
#152F6C #6C2615 #5A6C15
monochromatic
#050B1A #0B1939 #152F6C #1F459F #295CD2

Accessibility & contrast

On white

12.69
#152F6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#152F6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F6C
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F6C#FFFFFF#000000##FFFFFF
##152F6C1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01376E
Deuteranopia (green-blind)
#002F6B
Tritanopia (blue-blind)
#003E48
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152f6c;
/* rgb */ color: rgb(21, 47, 108);
/* oklch */ color: oklch(32.5% 0.111 263.9);
Tailwind
colors: {
  custom: {
    50: '#616797',
    500: '#152f6c',
    950: '#000000',
  },
}
SCSS
$custom: #152f6c;
$custom-light: #616797;
$custom-dark: #000000;
JSON
{
  "hex": "#152f6c",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 108
  },
  "hsl": {
    "h": 222.069,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32503,
    "c": 0.11127,
    "h": 263.9
  },
  "luminance": 0.03275
}

Semantic roles & 50–950 ramp

primary
#152F6C
secondary
#A3833A
accent
#B73DEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #152F6C

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

Preview Lab → · Contrast checker → · Palette generator →

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