#152257#152257

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

Color values

HEX#152257
RGBrgb(21, 34, 87)
HSLhsl(228, 61%, 21%)
HSVhsv(228, 76%, 34%)
CMYKcmyk(75.9%, 60.9%, 0%, 65.9%)
CIE-LABlab(15.44, 15.15, -33.75)
CIE-LCHlch(15.44, 36.99, 294.17°)
OKLaboklab(27.68% -0.0021 -0.0972)
OKLCHoklch(27.68% 0.097 268.8)
XYZxyz(2.6010, 1.9913, 9.2623)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152257 #574A15
analogous
#154357 #152257 #291557
triadic
#152257 #571522 #225715
tetradic
#152257 #571543 #574A15 #155729
square
#152257 #571543 #574A15 #155729
split-complementary
#152257 #572915 #435715
monochromatic
#060A19 #090F26 #152257 #213588 #2D49BA

Accessibility & contrast

On white

15.02
#152257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152257
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152257#FFFFFF#000000##FFFFFF
##1522571.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #152257;
/* rgb */ color: rgb(21, 34, 87);
/* oklch */ color: oklch(27.7% 0.097 268.8);
Tailwind
colors: {
  custom: {
    50: '#5d5c87',
    500: '#152257',
    950: '#000000',
  },
}
SCSS
$custom: #152257;
$custom-light: #5d5c87;
$custom-dark: #000000;
JSON
{
  "hex": "#152257",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 87
  },
  "hsl": {
    "h": 228.182,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27677,
    "c": 0.09723,
    "h": 268.8
  },
  "luminance": 0.01992
}

Semantic roles & 50–950 ramp

primary
#152257
secondary
#8F7E39
accent
#C544E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #152257

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

Preview Lab → · Contrast checker → · Palette generator →

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