#151B80#151B80

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

Color values

HEX#151B80
RGBrgb(21, 27, 128)
HSLhsl(237, 72%, 29%)
HSVhsv(237, 84%, 50%)
CMYKcmyk(83.6%, 78.9%, 0%, 49.8%)
CIE-LABlab(17.92, 35.93, -56.43)
CIE-LCHlch(17.92, 66.90, 302.49°)
OKLaboklab(30.76% -0.0015 -0.1635)
OKLCHoklch(30.76% 0.164 269.5)
XYZxyz(4.5961, 2.5013, 20.6584)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B80 #807A15
analogous
#155080 #151B80 #451580
triadic
#151B80 #80151B #1B8015
tetradic
#151B80 #801550 #807A15 #158045
square
#151B80 #801550 #807A15 #158045
split-complementary
#151B80 #804515 #508015
monochromatic
#04061A #0C104B #151B80 #1E26B5 #323CDD

Accessibility & contrast

On white

14.00
#151B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151B80
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B80#FFFFFF#000000##FFFFFF
##151B801.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151b80;
/* rgb */ color: rgb(21, 27, 128);
/* oklch */ color: oklch(30.8% 0.164 269.5);
Tailwind
colors: {
  custom: {
    50: '#6959a6',
    500: '#151b80',
    950: '#000000',
  },
}
SCSS
$custom: #151b80;
$custom-light: #6959a6;
$custom-dark: #000000;
JSON
{
  "hex": "#151b80",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 236.636,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30765,
    "c": 0.1635,
    "h": 269.5
  },
  "luminance": 0.02502
}

Semantic roles & 50–950 ramp

primary
#151B80
secondary
#B5AE3C
accent
#E439EF
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #151B80

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

Preview Lab → · Contrast checker → · Palette generator →

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