#151C7E#151C7E

#151C7E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.160 H 269.5°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#151C7E
RGBrgb(21, 28, 126)
HSLhsl(236, 71%, 29%)
HSVhsv(236, 83%, 49%)
CMYKcmyk(83.3%, 77.8%, 0%, 50.6%)
CIE-LABlab(17.90, 34.62, -55.20)
CIE-LCHlch(17.90, 65.16, 302.09°)
OKLaboklab(30.68% -0.0015 -0.1599)
OKLCHoklch(30.68% 0.16 269.5)
XYZxyz(4.4891, 2.4958, 19.9798)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C7E #7E7715
analogous
#15517E #151C7E #43157E
triadic
#151C7E #7E151C #1C7E15
tetradic
#151C7E #7E1551 #7E7715 #157E43
square
#151C7E #7E1551 #7E7715 #157E43
split-complementary
#151C7E #7E4315 #517E15
monochromatic
#04061A #0C104A #151C7E #1E28B2 #313CDD

Accessibility & contrast

On white

14.01
#151C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#151C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151C7E
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C7E#FFFFFF#000000##FFFFFF
##151C7E1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #151c7e;
/* rgb */ color: rgb(21, 28, 126);
/* oklch */ color: oklch(30.7% 0.160 269.5);
Tailwind
colors: {
  custom: {
    50: '#6859a5',
    500: '#151c7e',
    950: '#000000',
  },
}
SCSS
$custom: #151c7e;
$custom-light: #6859a5;
$custom-dark: #000000;
JSON
{
  "hex": "#151c7e",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 236,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.30678,
    "c": 0.15994,
    "h": 269.5
  },
  "luminance": 0.02496
}

Semantic roles & 50–950 ramp

primary
#151C7E
secondary
#B3AB3C
accent
#E23AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #151C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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