#152164#152164

#152164 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.7% C 0.118 H 269.4°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#152164
RGBrgb(21, 33, 100)
HSLhsl(231, 65%, 24%)
HSVhsv(231, 79%, 39%)
CMYKcmyk(79%, 67%, 0%, 60.8%)
CIE-LABlab(16.34, 21.25, -40.94)
CIE-LCHlch(16.34, 46.13, 297.44°)
OKLaboklab(28.71% -0.0012 -0.1183)
OKLCHoklch(28.71% 0.118 269.4)
XYZxyz(3.1526, 2.1669, 12.3062)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152164 #645815
analogous
#154864 #152164 #301564
triadic
#152164 #641521 #216415
tetradic
#152164 #641548 #645815 #156430
square
#152164 #641548 #645815 #156430
split-complementary
#152164 #643015 #486415
monochromatic
#050819 #0A1031 #152164 #203297 #2A42C9

Accessibility & contrast

On white

14.65
#152164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#152164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152164
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152164#FFFFFF#000000##FFFFFF
##1521641.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#002563
Tritanopia (blue-blind)
#00323F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #152164;
/* rgb */ color: rgb(21, 33, 100);
/* oklch */ color: oklch(28.7% 0.118 269.4);
Tailwind
colors: {
  custom: {
    50: '#605c91',
    500: '#152164',
    950: '#000000',
  },
}
SCSS
$custom: #152164;
$custom-light: #605c91;
$custom-dark: #000000;
JSON
{
  "hex": "#152164",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 100
  },
  "hsl": {
    "h": 230.886,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28714,
    "c": 0.11834,
    "h": 269.4
  },
  "luminance": 0.02167
}

Semantic roles & 50–950 ramp

primary
#152164
secondary
#9B8C3A
accent
#CF40E8
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#05040D
muted
#79797E

Preview Lab

Preview with #152164

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

Preview Lab → · Contrast checker → · Palette generator →

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