#151A79#151A79

#151A79 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.8% C 0.156 H 270.0°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#151A79
RGBrgb(21, 26, 121)
HSLhsl(237, 70%, 28%)
HSVhsv(237, 83%, 47%)
CMYKcmyk(82.6%, 78.5%, 0%, 52.5%)
CIE-LABlab(16.88, 34.02, -53.69)
CIE-LCHlch(16.88, 63.56, 302.36°)
OKLaboklab(29.79% 0.0001 -0.1555)
OKLCHoklch(29.79% 0.156 270)
XYZxyz(4.1287, 2.2782, 18.3076)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A79 #797415
analogous
#154C79 #151A79 #421579
triadic
#151A79 #79151A #1A7915
tetradic
#151A79 #79154C #797415 #157942
square
#151A79 #79154C #797415 #157942
split-complementary
#151A79 #794215 #4C7915
monochromatic
#05061A #0C0F45 #151A79 #1E25AD #2E36DB

Accessibility & contrast

On white

14.43
#151A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#151A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151A79
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A79#FFFFFF#000000##FFFFFF
##151A791.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002577
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #151a79;
/* rgb */ color: rgb(21, 26, 121);
/* oklch */ color: oklch(29.8% 0.156 270.0);
Tailwind
colors: {
  custom: {
    50: '#6758a1',
    500: '#151a79',
    950: '#000000',
  },
}
SCSS
$custom: #151a79;
$custom-light: #6758a1;
$custom-dark: #000000;
JSON
{
  "hex": "#151a79",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 237,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.29786,
    "c": 0.15552,
    "h": 270
  },
  "luminance": 0.02279
}

Semantic roles & 50–950 ramp

primary
#151A79
secondary
#AFA93B
accent
#E43BED
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07030F
muted
#7A787F

Preview Lab

Preview with #151A79

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

Preview Lab → · Contrast checker → · Palette generator →

#151A79 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva