#152F6D#152F6D

#152F6D is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.6% C 0.113 H 264.0°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#152F6D
RGBrgb(21, 47, 109)
HSLhsl(222, 68%, 25%)
HSVhsv(222, 81%, 43%)
CMYKcmyk(80.7%, 56.9%, 0%, 57.3%)
CIE-LABlab(21.19, 14.83, -38.91)
CIE-LCHlch(21.19, 41.64, 290.86°)
OKLaboklab(32.59% -0.0118 -0.1121)
OKLCHoklch(32.59% 0.113 264)
XYZxyz(4.0851, 3.2961, 14.8859)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F6D #6D5315
analogous
#155B6D #152F6D #27156D
triadic
#152F6D #6D152F #2F6D15
tetradic
#152F6D #6D155B #6D5315 #156D27
square
#152F6D #6D155B #6D5315 #156D27
split-complementary
#152F6D #6D2715 #5B6D15
monochromatic
#050B1A #0B193A #152F6D #1F45A0 #295BD4

Accessibility & contrast

On white

12.66
#152F6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152F6D
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F6D#FFFFFF#000000##FFFFFF
##152F6D1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00376F
Deuteranopia (green-blind)
#002F6C
Tritanopia (blue-blind)
#003E49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152f6d;
/* rgb */ color: rgb(21, 47, 109);
/* oklch */ color: oklch(32.6% 0.113 264.0);
Tailwind
colors: {
  custom: {
    50: '#626797',
    500: '#152f6d',
    950: '#000000',
  },
}
SCSS
$custom: #152f6d;
$custom-light: #626797;
$custom-dark: #000000;
JSON
{
  "hex": "#152f6d",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 109
  },
  "hsl": {
    "h": 222.273,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3259,
    "c": 0.11276,
    "h": 264
  },
  "luminance": 0.03297
}

Semantic roles & 50–950 ramp

primary
#152F6D
secondary
#A3843A
accent
#B73DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #152F6D

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

Preview Lab → · Contrast checker → · Palette generator →

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