#151B7C#151B7C

#151B7C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.158 H 269.7°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#151B7C
RGBrgb(21, 27, 124)
HSLhsl(237, 71%, 28%)
HSVhsv(237, 83%, 49%)
CMYKcmyk(83.1%, 78.2%, 0%, 51.4%)
CIE-LABlab(17.45, 34.50, -54.67)
CIE-LCHlch(17.45, 64.65, 302.25°)
OKLaboklab(30.29% -0.0008 -0.1584)
OKLCHoklch(30.29% 0.158 269.7)
XYZxyz(4.3380, 2.3980, 19.2991)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B7C #7C7615
analogous
#154E7C #151B7C #42157C
triadic
#151B7C #7C151B #1B7C15
tetradic
#151B7C #7C154E #7C7615 #157C42
square
#151B7C #7C154E #7C7615 #157C42
split-complementary
#151B7C #7C4215 #4E7C15
monochromatic
#04061A #0C1048 #151B7C #1E26B0 #303ADC

Accessibility & contrast

On white

14.19
#151B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#151B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B7C
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B7C#FFFFFF#000000##FFFFFF
##151B7C1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #151b7c;
/* rgb */ color: rgb(21, 27, 124);
/* oklch */ color: oklch(30.3% 0.158 269.7);
Tailwind
colors: {
  custom: {
    50: '#6859a3',
    500: '#151b7c',
    950: '#000000',
  },
}
SCSS
$custom: #151b7c;
$custom-light: #6859a3;
$custom-dark: #000000;
JSON
{
  "hex": "#151b7c",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 236.505,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30291,
    "c": 0.15837,
    "h": 269.7
  },
  "luminance": 0.02399
}

Semantic roles & 50–950 ramp

primary
#151B7C
secondary
#B1AA3C
accent
#E33AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #151B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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