#152378#152378

#152378 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.144 H 268.5°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#152378
RGBrgb(21, 35, 120)
HSLhsl(232, 70%, 28%)
HSVhsv(232, 83%, 47%)
CMYKcmyk(82.5%, 70.8%, 0%, 52.9%)
CIE-LABlab(18.87, 27.84, -49.77)
CIE-LCHlch(18.87, 57.02, 299.22°)
OKLaboklab(31.18% -0.0037 -0.1441)
OKLCHoklch(31.18% 0.144 268.5)
XYZxyz(4.2993, 2.7171, 18.0635)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152378 #786A15
analogous
#155578 #152378 #381578
triadic
#152378 #781523 #237815
tetradic
#152378 #781555 #786A15 #157838
square
#152378 #781555 #786A15 #157838
split-complementary
#152378 #783815 #557815
monochromatic
#05081A #0C1444 #152378 #1E32AC #2D46DA

Accessibility & contrast

On white

13.60
#152378 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#152378 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152378
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152378#FFFFFF#000000##FFFFFF
##1523781.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #152378;
/* rgb */ color: rgb(21, 35, 120);
/* oklch */ color: oklch(31.2% 0.144 268.5);
Tailwind
colors: {
  custom: {
    50: '#665ea0',
    500: '#152378',
    950: '#000000',
  },
}
SCSS
$custom: #152378;
$custom-light: #665ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#152378",
  "rgb": {
    "r": 21,
    "g": 35,
    "b": 120
  },
  "hsl": {
    "h": 231.515,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31181,
    "c": 0.14418,
    "h": 268.5
  },
  "luminance": 0.02718
}

Semantic roles & 50–950 ramp

primary
#152378
secondary
#AE9D3B
accent
#D43BED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #152378

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

Preview Lab → · Contrast checker → · Palette generator →

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