#152E5F#152E5F

#152E5F is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.2% C 0.093 H 262.1°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#152E5F
RGBrgb(21, 46, 95)
HSLhsl(220, 64%, 23%)
HSVhsv(220, 78%, 37%)
CMYKcmyk(77.9%, 51.6%, 0%, 62.7%)
CIE-LABlab(19.80, 9.65, -32.03)
CIE-LCHlch(19.80, 33.45, 286.76°)
OKLaboklab(31.18% -0.0127 -0.0919)
OKLCHoklch(31.18% 0.093 262.1)
XYZxyz(3.3511, 2.9393, 11.2150)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152E5F #5F4615
analogous
#15535F #152E5F #21155F
triadic
#152E5F #5F152E #2E5F15
tetradic
#152E5F #5F1553 #5F4615 #155F21
square
#152E5F #5F1553 #5F4615 #155F21
split-complementary
#152E5F #5F2115 #535F15
monochromatic
#060C19 #0A162D #152E5F #204691 #2B5FC3

Accessibility & contrast

On white

13.22
#152E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152E5F
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152E5F#FFFFFF#000000##FFFFFF
##152E5F1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133361
Deuteranopia (green-blind)
#012D5E
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #152e5f;
/* rgb */ color: rgb(21, 46, 95);
/* oklch */ color: oklch(31.2% 0.093 262.1);
Tailwind
colors: {
  custom: {
    50: '#5e668d',
    500: '#152e5f',
    950: '#000000',
  },
}
SCSS
$custom: #152e5f;
$custom-light: #5e668d;
$custom-dark: #000000;
JSON
{
  "hex": "#152e5f",
  "rgb": {
    "r": 21,
    "g": 46,
    "b": 95
  },
  "hsl": {
    "h": 219.73,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.31184,
    "c": 0.0928,
    "h": 262.1
  },
  "luminance": 0.0294
}

Semantic roles & 50–950 ramp

primary
#152E5F
secondary
#96773A
accent
#AF41E7
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #152E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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