#152F6F#152F6F

#152F6F is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.8% C 0.116 H 264.2°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#152F6F
RGBrgb(21, 47, 111)
HSLhsl(223, 68%, 26%)
HSVhsv(223, 81%, 44%)
CMYKcmyk(81.1%, 57.7%, 0%, 56.5%)
CIE-LABlab(21.36, 15.67, -39.93)
CIE-LCHlch(21.36, 42.89, 291.42°)
OKLaboklab(32.77% -0.0116 -0.1152)
OKLCHoklch(32.77% 0.116 264.2)
XYZxyz(4.1940, 3.3397, 15.4594)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F6F #6F5515
analogous
#155C6F #152F6F #28156F
triadic
#152F6F #6F152F #2F6F15
tetradic
#152F6F #6F155C #6F5515 #156F28
square
#152F6F #6F155C #6F5515 #156F28
split-complementary
#152F6F #6F2815 #5C6F15
monochromatic
#050B1A #0B193C #152F6F #1F45A2 #285BD6

Accessibility & contrast

On white

12.59
#152F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#152F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F6F
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F6F#FFFFFF#000000##FFFFFF
##152F6F1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003871
Deuteranopia (green-blind)
#002F6E
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #152f6f;
/* rgb */ color: rgb(21, 47, 111);
/* oklch */ color: oklch(32.8% 0.116 264.2);
Tailwind
colors: {
  custom: {
    50: '#626799',
    500: '#152f6f',
    950: '#000000',
  },
}
SCSS
$custom: #152f6f;
$custom-light: #626799;
$custom-dark: #000000;
JSON
{
  "hex": "#152f6f",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 111
  },
  "hsl": {
    "h": 222.667,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32765,
    "c": 0.11574,
    "h": 264.2
  },
  "luminance": 0.0334
}

Semantic roles & 50–950 ramp

primary
#152F6F
secondary
#A5863A
accent
#B93DEB
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #152F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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