#151A7C#151A7C

#151A7C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.159 H 269.8°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).

Color values

HEX#151A7C
RGBrgb(21, 26, 124)
HSLhsl(237, 71%, 28%)
HSVhsv(237, 83%, 49%)
CMYKcmyk(83.1%, 79%, 0%, 51.4%)
CIE-LABlab(17.24, 35.10, -55.02)
CIE-LCHlch(17.24, 65.26, 302.53°)
OKLaboklab(30.14% -0.0004 -0.1594)
OKLCHoklch(30.14% 0.159 269.8)
XYZxyz(4.3155, 2.3530, 19.2916)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151A7C #7C7715
analogous
#154D7C #151A7C #43157C
triadic
#151A7C #7C151A #1A7C15
tetradic
#151A7C #7C154D #7C7715 #157C43
square
#151A7C #7C154D #7C7715 #157C43
split-complementary
#151A7C #7C4315 #4D7C15
monochromatic
#04051A #0C0F48 #151A7C #1E25B0 #3038DC

Accessibility & contrast

On white

14.28
#151A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#151A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151A7C
14.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151A7C#FFFFFF#000000##FFFFFF
##151A7C1.0014.281.4714.28
#FFFFFF14.281.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #151a7c;
/* rgb */ color: rgb(21, 26, 124);
/* oklch */ color: oklch(30.1% 0.159 269.8);
Tailwind
colors: {
  custom: {
    50: '#6858a3',
    500: '#151a7c',
    950: '#000000',
  },
}
SCSS
$custom: #151a7c;
$custom-light: #6858a3;
$custom-dark: #000000;
JSON
{
  "hex": "#151a7c",
  "rgb": {
    "r": 21,
    "g": 26,
    "b": 124
  },
  "hsl": {
    "h": 237.087,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30142,
    "c": 0.15938,
    "h": 269.8
  },
  "luminance": 0.02353
}

Semantic roles & 50–950 ramp

primary
#151A7C
secondary
#B1AC3C
accent
#E53AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #151A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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