#151A7F#151A7F

#151A7F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.163 H 269.6°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#151A7F
RGBrgb(21, 26, 127)
HSLhsl(237, 72%, 29%)
HSVhsv(237, 83%, 50%)
CMYKcmyk(83.5%, 79.5%, 0%, 50.2%)
CIE-LABlab(17.60, 36.17, -56.34)
CIE-LCHlch(17.60, 66.95, 302.70°)
OKLaboklab(30.5% -0.001 -0.1632)
OKLCHoklch(30.5% 0.163 269.6)
XYZxyz(4.5081, 2.4300, 20.3060)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A7F #7F7A15
analogous
#154F7F #151A7F #45157F
triadic
#151A7F #7F151A #1A7F15
tetradic
#151A7F #7F154F #7F7A15 #157F45
square
#151A7F #7F154F #7F7A15 #157F45
split-complementary
#151A7F #7F4515 #4F7F15
monochromatic
#04051A #0C0F4A #151A7F #1E25B4 #3139DD

Accessibility & contrast

On white

14.13
#151A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#151A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151A7F
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A7F#FFFFFF#000000##FFFFFF
##151A7F1.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #151a7f;
/* rgb */ color: rgb(21, 26, 127);
/* oklch */ color: oklch(30.5% 0.163 269.6);
Tailwind
colors: {
  custom: {
    50: '#6958a5',
    500: '#151a7f',
    950: '#000000',
  },
}
SCSS
$custom: #151a7f;
$custom-light: #6958a5;
$custom-dark: #000000;
JSON
{
  "hex": "#151a7f",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 237.17,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.305,
    "c": 0.1632,
    "h": 269.6
  },
  "luminance": 0.02431
}

Semantic roles & 50–950 ramp

primary
#151A7F
secondary
#B4AE3C
accent
#E639EE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #151A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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