#152258#152258

#152258 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.8% C 0.099 H 268.8°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#152258
RGBrgb(21, 34, 88)
HSLhsl(228, 61%, 21%)
HSVhsv(228, 76%, 35%)
CMYKcmyk(76.1%, 61.4%, 0%, 65.5%)
CIE-LABlab(15.53, 15.57, -34.28)
CIE-LCHlch(15.53, 37.65, 294.42°)
OKLaboklab(27.77% -0.002 -0.0988)
OKLCHoklch(27.77% 0.099 268.8)
XYZxyz(2.6421, 2.0078, 9.4789)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152258 #584B15
analogous
#154458 #152258 #2A1558
triadic
#152258 #581522 #225815
tetradic
#152258 #581544 #584B15 #15582A
square
#152258 #581544 #584B15 #15582A
split-complementary
#152258 #582A15 #445815
monochromatic
#060A19 #090F27 #152258 #213589 #2D48BB

Accessibility & contrast

On white

14.98
#152258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#152258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152258
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152258#FFFFFF#000000##FFFFFF
##1522581.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#002F39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #152258;
/* rgb */ color: rgb(21, 34, 88);
/* oklch */ color: oklch(27.8% 0.099 268.8);
Tailwind
colors: {
  custom: {
    50: '#5d5c88',
    500: '#152258',
    950: '#000000',
  },
}
SCSS
$custom: #152258;
$custom-light: #5d5c88;
$custom-dark: #000000;
JSON
{
  "hex": "#152258",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 88
  },
  "hsl": {
    "h": 228.358,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27769,
    "c": 0.09879,
    "h": 268.8
  },
  "luminance": 0.02008
}

Semantic roles & 50–950 ramp

primary
#152258
secondary
#907F39
accent
#C543E5
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #152258

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

Preview Lab → · Contrast checker → · Palette generator →

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