#151C68#151C68

#151C68 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.2% C 0.130 H 270.8°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#151C68
RGBrgb(21, 28, 104)
HSLhsl(235, 66%, 25%)
HSVhsv(235, 80%, 41%)
CMYKcmyk(79.8%, 73.1%, 0%, 59.2%)
CIE-LABlab(15.43, 26.35, -45.06)
CIE-LCHlch(15.43, 52.20, 300.32°)
OKLaboklab(28.17% 0.0017 -0.1304)
OKLCHoklch(28.17% 0.13 270.8)
XYZxyz(3.2224, 1.9891, 13.3081)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151C68 #686115
analogous
#154668 #151C68 #381568
triadic
#151C68 #68151C #1C6815
tetradic
#151C68 #681546 #686115 #156838
square
#151C68 #681546 #686115 #156838
split-complementary
#151C68 #683815 #466815
monochromatic
#050719 #0B0E35 #151C68 #1F2A9B #2A37CE

Accessibility & contrast

On white

15.02
#151C68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#151C68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151C68
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151C68#FFFFFF#000000##FFFFFF
##151C681.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6A
Deuteranopia (green-blind)
#002367
Tritanopia (blue-blind)
#00313F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #151c68;
/* rgb */ color: rgb(21, 28, 104);
/* oklch */ color: oklch(28.2% 0.130 270.8);
Tailwind
colors: {
  custom: {
    50: '#625894',
    500: '#151c68',
    950: '#000000',
  },
}
SCSS
$custom: #151c68;
$custom-light: #625894;
$custom-dark: #000000;
JSON
{
  "hex": "#151c68",
  "rgb": {
    "r": 21,
    "g": 28,
    "b": 104
  },
  "hsl": {
    "h": 234.94,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28174,
    "c": 0.13043,
    "h": 270.8
  },
  "luminance": 0.01989
}

Semantic roles & 50–950 ramp

primary
#151C68
secondary
#9F963A
accent
#DB3EE9
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #151C68

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

Preview Lab → · Contrast checker → · Palette generator →

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