#151F7B#151F7B

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

Color values

HEX#151F7B
RGBrgb(21, 31, 123)
HSLhsl(234, 71%, 28%)
HSVhsv(234, 83%, 48%)
CMYKcmyk(82.9%, 74.8%, 0%, 51.8%)
CIE-LABlab(18.23, 31.63, -52.75)
CIE-LCHlch(18.23, 61.51, 300.95°)
OKLaboklab(30.81% -0.0022 -0.1528)
OKLCHoklch(30.81% 0.153 269.2)
XYZxyz(4.3732, 2.5690, 19.0004)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F7B #7B7115
analogous
#15527B #151F7B #3E157B
triadic
#151F7B #7B151F #1F7B15
tetradic
#151F7B #7B1552 #7B7115 #157B3E
square
#151F7B #7B1552 #7B7115 #157B3E
split-complementary
#151F7B #7B3E15 #527B15
monochromatic
#04071A #0C1247 #151F7B #1E2CAF #2F40DB

Accessibility & contrast

On white

13.87
#151F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#151F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##151F7B#FFFFFF#000000##FFFFFF
##151F7B1.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)
#00317E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #151f7b;
/* rgb */ color: rgb(21, 31, 123);
/* oklch */ color: oklch(30.8% 0.153 269.2);
Tailwind
colors: {
  custom: {
    50: '#675ba2',
    500: '#151f7b',
    950: '#000000',
  },
}
SCSS
$custom: #151f7b;
$custom-light: #675ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#151f7b",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 234.118,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30811,
    "c": 0.15284,
    "h": 269.2
  },
  "luminance": 0.02569
}

Semantic roles & 50–950 ramp

primary
#151F7B
secondary
#B0A53B
accent
#DC3AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #151F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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