#152F6E#152F6E

#152F6E is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.7% C 0.114 H 264.1°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#152F6E
RGBrgb(21, 47, 110)
HSLhsl(222, 68%, 26%)
HSVhsv(222, 81%, 43%)
CMYKcmyk(80.9%, 57.3%, 0%, 56.9%)
CIE-LABlab(21.27, 15.25, -39.42)
CIE-LCHlch(21.27, 42.27, 291.15°)
OKLaboklab(32.68% -0.0117 -0.1136)
OKLCHoklch(32.68% 0.114 264.1)
XYZxyz(4.1392, 3.3178, 15.1711)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F6E #6E5415
analogous
#155B6E #152F6E #27156E
triadic
#152F6E #6E152F #2F6E15
tetradic
#152F6E #6E155B #6E5415 #156E27
square
#152F6E #6E155B #6E5415 #156E27
split-complementary
#152F6E #6E2715 #5B6E15
monochromatic
#050B1A #0B193B #152F6E #1F45A1 #295BD5

Accessibility & contrast

On white

12.62
#152F6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152F6E
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F6E#FFFFFF#000000##FFFFFF
##152F6E1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003770
Deuteranopia (green-blind)
#002F6D
Tritanopia (blue-blind)
#003E49
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152f6e;
/* rgb */ color: rgb(21, 47, 110);
/* oklch */ color: oklch(32.7% 0.114 264.1);
Tailwind
colors: {
  custom: {
    50: '#626798',
    500: '#152f6e',
    950: '#000000',
  },
}
SCSS
$custom: #152f6e;
$custom-light: #626798;
$custom-dark: #000000;
JSON
{
  "hex": "#152f6e",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 110
  },
  "hsl": {
    "h": 222.472,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32677,
    "c": 0.11425,
    "h": 264.1
  },
  "luminance": 0.03318
}

Semantic roles & 50–950 ramp

primary
#152F6E
secondary
#A4853A
accent
#B83DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #152F6E

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

Preview Lab → · Contrast checker → · Palette generator →

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