#152163#152163

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

Color values

HEX#152163
RGBrgb(21, 33, 99)
HSLhsl(231, 65%, 24%)
HSVhsv(231, 79%, 39%)
CMYKcmyk(78.8%, 66.7%, 0%, 61.2%)
CIE-LABlab(16.24, 20.85, -40.44)
CIE-LCHlch(16.24, 45.49, 297.27°)
OKLaboklab(28.61% -0.0012 -0.1169)
OKLCHoklch(28.61% 0.117 269.4)
XYZxyz(3.1045, 2.1477, 12.0529)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152163 #635715
analogous
#154863 #152163 #301563
triadic
#152163 #631521 #216315
tetradic
#152163 #631548 #635715 #156330
square
#152163 #631548 #635715 #156330
split-complementary
#152163 #633015 #486315
monochromatic
#050819 #0A1031 #152163 #203295 #2A43C8

Accessibility & contrast

On white

14.69
#152163 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #152163
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152163#FFFFFF#000000##FFFFFF
##1521631.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #152163;
/* rgb */ color: rgb(21, 33, 99);
/* oklch */ color: oklch(28.6% 0.117 269.4);
Tailwind
colors: {
  custom: {
    50: '#605c90',
    500: '#152163',
    950: '#000000',
  },
}
SCSS
$custom: #152163;
$custom-light: #605c90;
$custom-dark: #000000;
JSON
{
  "hex": "#152163",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 99
  },
  "hsl": {
    "h": 230.769,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28614,
    "c": 0.11687,
    "h": 269.4
  },
  "luminance": 0.02148
}

Semantic roles & 50–950 ramp

primary
#152163
secondary
#9A8B3A
accent
#CE40E8
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040D
muted
#7A797D

Preview Lab

Preview with #152163

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

Preview Lab → · Contrast checker → · Palette generator →

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