#152F64#152F64

#152F64 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.8% C 0.099 H 262.5°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#152F64
RGBrgb(21, 47, 100)
HSLhsl(220, 65%, 24%)
HSVhsv(220, 79%, 39%)
CMYKcmyk(79%, 53%, 0%, 60.8%)
CIE-LABlab(20.49, 11.03, -34.20)
CIE-LCHlch(20.49, 35.93, 287.88°)
OKLaboklab(31.83% -0.0129 -0.0983)
OKLCHoklch(31.83% 0.099 262.5)
XYZxyz(3.6252, 3.1122, 12.4638)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152F64 #644A15
analogous
#155664 #152F64 #221564
triadic
#152F64 #64152F #2F6415
tetradic
#152F64 #641556 #644A15 #156422
square
#152F64 #641556 #644A15 #156422
split-complementary
#152F64 #642215 #566415
monochromatic
#050C19 #0A1731 #152F64 #204797 #2A5FC9

Accessibility & contrast

On white

12.94
#152F64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#152F64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152F64
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152F64#FFFFFF#000000##FFFFFF
##152F641.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3566
Deuteranopia (green-blind)
#002E63
Tritanopia (blue-blind)
#003C44
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #152f64;
/* rgb */ color: rgb(21, 47, 100);
/* oklch */ color: oklch(31.8% 0.099 262.5);
Tailwind
colors: {
  custom: {
    50: '#5f6790',
    500: '#152f64',
    950: '#000000',
  },
}
SCSS
$custom: #152f64;
$custom-light: #5f6790;
$custom-dark: #000000;
JSON
{
  "hex": "#152f64",
  "rgb": {
    "r": 21,
    "g": 47,
    "b": 100
  },
  "hsl": {
    "h": 220.253,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.3183,
    "c": 0.09913,
    "h": 262.5
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#152F64
secondary
#9B7B3A
accent
#B140E8
background
#F5F6F8
surface
#EAEBF0
border
#C6C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #152F64

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

Preview Lab → · Contrast checker → · Palette generator →

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