#152256#152256

#152256 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.6% C 0.096 H 268.7°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#152256
RGBrgb(21, 34, 86)
HSLhsl(228, 61%, 21%)
HSVhsv(228, 76%, 34%)
CMYKcmyk(75.6%, 60.5%, 0%, 66.3%)
CIE-LABlab(15.36, 14.73, -33.22)
CIE-LCHlch(15.36, 36.34, 293.92°)
OKLaboklab(27.59% -0.0021 -0.0956)
OKLCHoklch(27.59% 0.096 268.7)
XYZxyz(2.5604, 1.9751, 9.0486)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152256 #564915
analogous
#154256 #152256 #281556
triadic
#152256 #561522 #225615
tetradic
#152256 #561542 #564915 #155628
square
#152256 #561542 #564915 #155628
split-complementary
#152256 #562815 #425615
monochromatic
#060A19 #090F25 #152256 #213587 #2D49B8

Accessibility & contrast

On white

15.05
#152256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152256
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152256#FFFFFF#000000##FFFFFF
##1522561.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A58
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #152256;
/* rgb */ color: rgb(21, 34, 86);
/* oklch */ color: oklch(27.6% 0.096 268.7);
Tailwind
colors: {
  custom: {
    50: '#5c5c86',
    500: '#152256',
    950: '#000000',
  },
}
SCSS
$custom: #152256;
$custom-light: #5c5c86;
$custom-dark: #000000;
JSON
{
  "hex": "#152256",
  "rgb": {
    "r": 21,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 228,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27586,
    "c": 0.09566,
    "h": 268.7
  },
  "luminance": 0.01975
}

Semantic roles & 50–950 ramp

primary
#152256
secondary
#8E7D39
accent
#C444E4
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #152256

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

Preview Lab → · Contrast checker → · Palette generator →

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