#152079#152079

#152079 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.149 H 269.1°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#152079
RGBrgb(21, 32, 121)
HSLhsl(233, 70%, 28%)
HSVhsv(233, 83%, 47%)
CMYKcmyk(82.6%, 73.6%, 0%, 52.5%)
CIE-LABlab(18.24, 30.23, -51.45)
CIE-LCHlch(18.24, 59.67, 300.44°)
OKLaboklab(30.76% -0.0024 -0.149)
OKLCHoklch(30.76% 0.149 269.1)
XYZxyz(4.2758, 2.5724, 18.3566)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#152079 #796E15
analogous
#155279 #152079 #3C1579
triadic
#152079 #791520 #207915
tetradic
#152079 #791552 #796E15 #15793C
square
#152079 #791552 #796E15 #15793C
split-complementary
#152079 #793C15 #527915
monochromatic
#05071A #0C1245 #152079 #1E2EAD #2E41DB

Accessibility & contrast

On white

13.87
#152079 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#152079 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #152079
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##152079#FFFFFF#000000##FFFFFF
##1520791.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002877
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #152079;
/* rgb */ color: rgb(21, 32, 121);
/* oklch */ color: oklch(30.8% 0.149 269.1);
Tailwind
colors: {
  custom: {
    50: '#665ca1',
    500: '#152079',
    950: '#000000',
  },
}
SCSS
$custom: #152079;
$custom-light: #665ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#152079",
  "rgb": {
    "r": 21,
    "g": 32,
    "b": 121
  },
  "hsl": {
    "h": 233.4,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30757,
    "c": 0.14905,
    "h": 269.1
  },
  "luminance": 0.02573
}

Semantic roles & 50–950 ramp

primary
#152079
secondary
#AFA23B
accent
#DA3BED
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #152079

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

Preview Lab → · Contrast checker → · Palette generator →

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