#151C6C#151C6C

#151C6C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.6% C 0.136 H 270.5°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#151C6C
RGBrgb(21, 28, 108)
HSLhsl(235, 67%, 25%)
HSVhsv(235, 81%, 42%)
CMYKcmyk(80.6%, 74.1%, 0%, 57.6%)
CIE-LABlab(15.86, 27.90, -46.97)
CIE-LCHlch(15.86, 54.63, 300.71°)
OKLaboklab(28.62% 0.0012 -0.136)
OKLCHoklch(28.62% 0.136 270.5)
XYZxyz(3.4304, 2.0723, 14.4036)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C6C #6C6515
analogous
#15486C #151C6C #39156C
triadic
#151C6C #6C151C #1C6C15
tetradic
#151C6C #6C1548 #6C6515 #156C39
square
#151C6C #6C1548 #6C6515 #156C39
split-complementary
#151C6C #6C3915 #486C15
monochromatic
#05071A #0B0F39 #151C6C #1F299F #2937D2

Accessibility & contrast

On white

14.85
#151C6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#151C6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151C6C
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C6C#FFFFFF#000000##FFFFFF
##151C6C1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#00236B
Tritanopia (blue-blind)
#003241
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #151c6c;
/* rgb */ color: rgb(21, 28, 108);
/* oklch */ color: oklch(28.6% 0.136 270.5);
Tailwind
colors: {
  custom: {
    50: '#635897',
    500: '#151c6c',
    950: '#000000',
  },
}
SCSS
$custom: #151c6c;
$custom-light: #635897;
$custom-dark: #000000;
JSON
{
  "hex": "#151c6c",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 108
  },
  "hsl": {
    "h": 235.172,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28616,
    "c": 0.136,
    "h": 270.5
  },
  "luminance": 0.02073
}

Semantic roles & 50–950 ramp

primary
#151C6C
secondary
#A39A3A
accent
#DC3DEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #151C6C

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

Preview Lab → · Contrast checker → · Palette generator →

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