#151B7F#151B7F

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

Color values

HEX#151B7F
RGBrgb(21, 27, 127)
HSLhsl(237, 72%, 29%)
HSVhsv(237, 83%, 50%)
CMYKcmyk(83.5%, 78.7%, 0%, 50.2%)
CIE-LABlab(17.81, 35.58, -55.99)
CIE-LCHlch(17.81, 66.34, 302.43°)
OKLaboklab(30.65% -0.0013 -0.1622)
OKLCHoklch(30.65% 0.162 269.5)
XYZxyz(4.5306, 2.4751, 20.3135)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B7F #7F7915
analogous
#15507F #151B7F #44157F
triadic
#151B7F #7F151B #1B7F15
tetradic
#151B7F #7F1550 #7F7915 #157F44
square
#151B7F #7F1550 #7F7915 #157F44
split-complementary
#151B7F #7F4415 #507F15
monochromatic
#04061A #0C104A #151B7F #1E26B4 #313BDD

Accessibility & contrast

On white

14.04
#151B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151B7F
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B7F#FFFFFF#000000##FFFFFF
##151B7F1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151b7f;
/* rgb */ color: rgb(21, 27, 127);
/* oklch */ color: oklch(30.6% 0.162 269.5);
Tailwind
colors: {
  custom: {
    50: '#6959a5',
    500: '#151b7f',
    950: '#000000',
  },
}
SCSS
$custom: #151b7f;
$custom-light: #6959a5;
$custom-dark: #000000;
JSON
{
  "hex": "#151b7f",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 236.604,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30646,
    "c": 0.16223,
    "h": 269.5
  },
  "luminance": 0.02476
}

Semantic roles & 50–950 ramp

primary
#151B7F
secondary
#B4AD3C
accent
#E439EE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #151B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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