#151F76#151F76

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

Color values

HEX#151F76
RGBrgb(21, 31, 118)
HSLhsl(234, 70%, 27%)
HSVhsv(234, 82%, 46%)
CMYKcmyk(82.2%, 73.7%, 0%, 53.7%)
CIE-LABlab(17.68, 29.74, -50.46)
CIE-LCHlch(17.68, 58.57, 300.52°)
OKLaboklab(30.25% -0.0016 -0.1461)
OKLCHoklch(30.25% 0.146 269.4)
XYZxyz(4.0681, 2.4469, 17.3939)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F76 #766C15
analogous
#155076 #151F76 #3B1576
triadic
#151F76 #76151F #1F7615
tetradic
#151F76 #761550 #766C15 #15763B
square
#151F76 #761550 #766C15 #15763B
split-complementary
#151F76 #763B15 #507615
monochromatic
#05071A #0C1142 #151F76 #1E2DAA #2C3ED9

Accessibility & contrast

On white

14.10
#151F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151F76
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F76#FFFFFF#000000##FFFFFF
##151F761.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002774
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #151f76;
/* rgb */ color: rgb(21, 31, 118);
/* oklch */ color: oklch(30.3% 0.146 269.4);
Tailwind
colors: {
  custom: {
    50: '#665b9e',
    500: '#151f76',
    950: '#000000',
  },
}
SCSS
$custom: #151f76;
$custom-light: #665b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#151f76",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 233.814,
    "s": 69.784,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30251,
    "c": 0.14615,
    "h": 269.4
  },
  "luminance": 0.02447
}

Semantic roles & 50–950 ramp

primary
#151F76
secondary
#ACA03B
accent
#DA3BED
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #151F76

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

Preview Lab → · Contrast checker → · Palette generator →

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