#151C7C#151C7C

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

Color values

HEX#151C7C
RGBrgb(21, 28, 124)
HSLhsl(236, 71%, 28%)
HSVhsv(236, 83%, 49%)
CMYKcmyk(83.1%, 77.4%, 0%, 51.4%)
CIE-LABlab(17.67, 33.89, -54.31)
CIE-LCHlch(17.67, 64.02, 301.96°)
OKLaboklab(30.44% -0.0012 -0.1573)
OKLCHoklch(30.44% 0.157 269.6)
XYZxyz(4.3614, 2.4447, 19.3069)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C7C #7C7515
analogous
#154F7C #151C7C #41157C
triadic
#151C7C #7C151C #1C7C15
tetradic
#151C7C #7C154F #7C7515 #157C41
square
#151C7C #7C154F #7C7515 #157C41
split-complementary
#151C7C #7C4115 #4F7C15
monochromatic
#04061A #0C1048 #151C7C #1E28B0 #303BDC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##151C7C#FFFFFF#000000##FFFFFF
##151C7C1.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)
#00307F
Deuteranopia (green-blind)
#00267A
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #151c7c;
/* rgb */ color: rgb(21, 28, 124);
/* oklch */ color: oklch(30.4% 0.157 269.6);
Tailwind
colors: {
  custom: {
    50: '#6859a3',
    500: '#151c7c',
    950: '#000000',
  },
}
SCSS
$custom: #151c7c;
$custom-light: #6859a3;
$custom-dark: #000000;
JSON
{
  "hex": "#151c7c",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 124
  },
  "hsl": {
    "h": 235.922,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30444,
    "c": 0.15735,
    "h": 269.6
  },
  "luminance": 0.02445
}

Semantic roles & 50–950 ramp

primary
#151C7C
secondary
#B1A93C
accent
#E23AEE
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #151C7C

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

Preview Lab → · Contrast checker → · Palette generator →

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