#151F7C#151F7C

#151F7C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.154 H 269.1°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#151F7C
RGBrgb(21, 31, 124)
HSLhsl(234, 71%, 28%)
HSVhsv(234, 83%, 49%)
CMYKcmyk(83.1%, 75%, 0%, 51.4%)
CIE-LABlab(18.34, 32.01, -53.20)
CIE-LCHlch(18.34, 62.09, 301.03°)
OKLaboklab(30.92% -0.0023 -0.1541)
OKLCHoklch(30.92% 0.154 269.1)
XYZxyz(4.4361, 2.5941, 19.3318)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F7C #7C7215
analogous
#15527C #151F7C #3E157C
triadic
#151F7C #7C151F #1F7C15
tetradic
#151F7C #7C1552 #7C7215 #157C3E
square
#151F7C #7C1552 #7C7215 #157C3E
split-complementary
#151F7C #7C3E15 #527C15
monochromatic
#04071A #0C1248 #151F7C #1E2CB0 #3040DC

Accessibility & contrast

On white

13.82
#151F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#151F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F7C
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F7C#FFFFFF#000000##FFFFFF
##151F7C1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#00287A
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #151f7c;
/* rgb */ color: rgb(21, 31, 124);
/* oklch */ color: oklch(30.9% 0.154 269.1);
Tailwind
colors: {
  custom: {
    50: '#675ba3',
    500: '#151f7c',
    950: '#000000',
  },
}
SCSS
$custom: #151f7c;
$custom-light: #675ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#151f7c",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 234.175,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30924,
    "c": 0.15416,
    "h": 269.1
  },
  "luminance": 0.02595
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #151F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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