#152179#152179

#152179 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.148 H 268.9°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#152179
RGBrgb(21, 33, 121)
HSLhsl(233, 70%, 28%)
HSVhsv(233, 83%, 47%)
CMYKcmyk(82.6%, 72.7%, 0%, 52.5%)
CIE-LABlab(18.48, 29.57, -51.05)
CIE-LCHlch(18.48, 58.99, 300.08°)
OKLaboklab(30.93% -0.0028 -0.1479)
OKLCHoklch(30.93% 0.148 268.9)
XYZxyz(4.3031, 2.6271, 18.3657)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152179 #796D15
analogous
#155379 #152179 #3B1579
triadic
#152179 #791521 #217915
tetradic
#152179 #791553 #796D15 #15793B
square
#152179 #791553 #796D15 #15793B
split-complementary
#152179 #793B15 #537915
monochromatic
#05071A #0C1345 #152179 #1E2FAD #2E42DB

Accessibility & contrast

On white

13.77
#152179 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#152179 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152179
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152179#FFFFFF#000000##FFFFFF
##1521791.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002877
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #152179;
/* rgb */ color: rgb(21, 33, 121);
/* oklch */ color: oklch(30.9% 0.148 268.9);
Tailwind
colors: {
  custom: {
    50: '#665ca1',
    500: '#152179',
    950: '#000000',
  },
}
SCSS
$custom: #152179;
$custom-light: #665ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#152179",
  "rgb": {
    "r": 21,
    "g": 33,
    "b": 121
  },
  "hsl": {
    "h": 232.8,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3093,
    "c": 0.1479,
    "h": 268.9
  },
  "luminance": 0.02628
}

Semantic roles & 50–950 ramp

primary
#152179
secondary
#AFA13B
accent
#D83BED
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #152179

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

Preview Lab → · Contrast checker → · Palette generator →

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