#152168#152168

#152168 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.1% C 0.124 H 269.3°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#152168
RGBrgb(21, 33, 104)
HSLhsl(231, 66%, 25%)
HSVhsv(231, 80%, 41%)
CMYKcmyk(79.8%, 68.3%, 0%, 59.2%)
CIE-LABlab(16.73, 22.87, -42.93)
CIE-LCHlch(16.73, 48.64, 298.05°)
OKLaboklab(29.12% -0.0014 -0.1242)
OKLCHoklch(29.12% 0.124 269.3)
XYZxyz(3.3509, 2.2463, 13.3510)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152168 #685C15
analogous
#154B68 #152168 #321568
triadic
#152168 #681521 #216815
tetradic
#152168 #68154B #685C15 #156832
square
#152168 #68154B #685C15 #156832
split-complementary
#152168 #683215 #4B6815
monochromatic
#050819 #0B1135 #152168 #1F319B #2A41CE

Accessibility & contrast

On white

14.49
#152168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#152168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152168
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152168#FFFFFF#000000##FFFFFF
##1521681.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002567
Tritanopia (blue-blind)
#003441
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #152168;
/* rgb */ color: rgb(21, 33, 104);
/* oklch */ color: oklch(29.1% 0.124 269.3);
Tailwind
colors: {
  custom: {
    50: '#615c94',
    500: '#152168',
    950: '#000000',
  },
}
SCSS
$custom: #152168;
$custom-light: #615c94;
$custom-dark: #000000;
JSON
{
  "hex": "#152168",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 231.325,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.29121,
    "c": 0.12417,
    "h": 269.3
  },
  "luminance": 0.02247
}

Semantic roles & 50–950 ramp

primary
#152168
secondary
#9F903A
accent
#D13EE9
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #152168

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

Preview Lab → · Contrast checker → · Palette generator →

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