#152F5C#152F5C

#152F5C is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.2% C 0.087 H 260.6°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#152F5C
RGBrgb(21, 47, 92)
HSLhsl(218, 63%, 22%)
HSVhsv(218, 77%, 36%)
CMYKcmyk(77.2%, 48.9%, 0%, 63.9%)
CIE-LABlab(19.90, 7.65, -29.88)
CIE-LCHlch(19.90, 30.85, 284.36°)
OKLaboklab(31.19% -0.0142 -0.0856)
OKLCHoklch(31.19% 0.087 260.6)
XYZxyz(3.2568, 2.9648, 10.5238)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F5C #5C4215
analogous
#15535C #152F5C #1E155C
triadic
#152F5C #5C152F #2F5C15
tetradic
#152F5C #5C1553 #5C4215 #155C1E
square
#152F5C #5C1553 #5C4215 #155C1E
split-complementary
#152F5C #5C1E15 #535C15
monochromatic
#060D19 #0A162A #152F5C #20488E #2C62C0

Accessibility & contrast

On white

13.18
#152F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#152F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F5C
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F5C#FFFFFF#000000##FFFFFF
##152F5C1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18345E
Deuteranopia (green-blind)
#092D5B
Tritanopia (blue-blind)
#003A41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #152f5c;
/* rgb */ color: rgb(21, 47, 92);
/* oklch */ color: oklch(31.2% 0.087 260.6);
Tailwind
colors: {
  custom: {
    50: '#5d678a',
    500: '#152f5c',
    950: '#000000',
  },
}
SCSS
$custom: #152f5c;
$custom-light: #5d678a;
$custom-dark: #000000;
JSON
{
  "hex": "#152f5c",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 92
  },
  "hsl": {
    "h": 218.028,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31194,
    "c": 0.08677,
    "h": 260.6
  },
  "luminance": 0.02965
}

Semantic roles & 50–950 ramp

primary
#152F5C
secondary
#937239
accent
#AA42E6
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #152F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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