#152259#152259

#152259 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.9% C 0.100 H 268.9°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#152259
RGBrgb(21, 34, 89)
HSLhsl(229, 62%, 22%)
HSVhsv(229, 76%, 35%)
CMYKcmyk(76.4%, 61.8%, 0%, 65.1%)
CIE-LABlab(15.62, 15.98, -34.81)
CIE-LCHlch(15.62, 38.30, 294.66°)
OKLaboklab(27.86% -0.002 -0.1003)
OKLCHoklch(27.86% 0.1 268.9)
XYZxyz(2.6838, 2.0245, 9.6986)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152259 #594C15
analogous
#154459 #152259 #2A1559
triadic
#152259 #591522 #225915
tetradic
#152259 #591544 #594C15 #15592A
square
#152259 #591544 #594C15 #15592A
split-complementary
#152259 #592A15 #445915
monochromatic
#060919 #090F27 #152259 #21358B #2C48BC

Accessibility & contrast

On white

14.95
#152259 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#152259 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152259
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152259#FFFFFF#000000##FFFFFF
##1522591.0014.951.4114.95
#FFFFFF14.951.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5B
Deuteranopia (green-blind)
#002458
Tritanopia (blue-blind)
#003039
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #152259;
/* rgb */ color: rgb(21, 34, 89);
/* oklch */ color: oklch(27.9% 0.100 268.9);
Tailwind
colors: {
  custom: {
    50: '#5d5c88',
    500: '#152259',
    950: '#000000',
  },
}
SCSS
$custom: #152259;
$custom-light: #5d5c88;
$custom-dark: #000000;
JSON
{
  "hex": "#152259",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 89
  },
  "hsl": {
    "h": 228.529,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27862,
    "c": 0.10035,
    "h": 268.9
  },
  "luminance": 0.02025
}

Semantic roles & 50–950 ramp

primary
#152259
secondary
#918039
accent
#C643E5
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #152259

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

Preview Lab → · Contrast checker → · Palette generator →

#152259 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva