#152162#152162

#152162 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.5% C 0.115 H 269.4°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#152162
RGBrgb(21, 33, 98)
HSLhsl(231, 65%, 23%)
HSVhsv(231, 79%, 38%)
CMYKcmyk(78.6%, 66.3%, 0%, 61.6%)
CIE-LABlab(16.15, 20.44, -39.93)
CIE-LCHlch(16.15, 44.86, 297.10°)
OKLaboklab(28.51% -0.0012 -0.1154)
OKLCHoklch(28.51% 0.115 269.4)
XYZxyz(3.0570, 2.1287, 11.8027)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152162 #625615
analogous
#154762 #152162 #2F1562
triadic
#152162 #621521 #216215
tetradic
#152162 #621547 #625615 #15622F
square
#152162 #621547 #625615 #15622F
split-complementary
#152162 #622F15 #476215
monochromatic
#050819 #0A1030 #152162 #203294 #2B43C7

Accessibility & contrast

On white

14.73
#152162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152162
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152162#FFFFFF#000000##FFFFFF
##1521621.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002561
Tritanopia (blue-blind)
#00323E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #152162;
/* rgb */ color: rgb(21, 33, 98);
/* oklch */ color: oklch(28.5% 0.115 269.4);
Tailwind
colors: {
  custom: {
    50: '#605c8f',
    500: '#152162',
    950: '#000000',
  },
}
SCSS
$custom: #152162;
$custom-light: #605c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#152162",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 230.649,
    "s": 64.706,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28514,
    "c": 0.11539,
    "h": 269.4
  },
  "luminance": 0.02129
}

Semantic roles & 50–950 ramp

primary
#152162
secondary
#998A3A
accent
#CE40E8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #152162

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

Preview Lab → · Contrast checker → · Palette generator →

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