#151D68#151D68

#151D68 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.4% C 0.129 H 270.5°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#151D68
RGBrgb(21, 29, 104)
HSLhsl(234, 66%, 25%)
HSVhsv(234, 80%, 41%)
CMYKcmyk(79.8%, 72.1%, 0%, 59.2%)
CIE-LABlab(15.68, 25.67, -44.65)
CIE-LCHlch(15.68, 51.50, 299.89°)
OKLaboklab(28.36% 0.0011 -0.1292)
OKLCHoklch(28.36% 0.129 270.5)
XYZxyz(3.2465, 2.0373, 13.3162)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151D68 #686015
analogous
#154768 #151D68 #371568
triadic
#151D68 #68151D #1D6815
tetradic
#151D68 #681547 #686015 #156837
square
#151D68 #681547 #686015 #156837
split-complementary
#151D68 #683715 #476815
monochromatic
#050719 #0B0F35 #151D68 #1F2B9B #2A39CE

Accessibility & contrast

On white

14.92
#151D68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #151D68
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151D68#FFFFFF#000000##FFFFFF
##151D681.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #151d68;
/* rgb */ color: rgb(21, 29, 104);
/* oklch */ color: oklch(28.4% 0.129 270.5);
Tailwind
colors: {
  custom: {
    50: '#625994',
    500: '#151d68',
    950: '#000000',
  },
}
SCSS
$custom: #151d68;
$custom-light: #625994;
$custom-dark: #000000;
JSON
{
  "hex": "#151d68",
  "rgb": {
    "r": 21,
    "g": 29,
    "b": 104
  },
  "hsl": {
    "h": 234.217,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28357,
    "c": 0.12921,
    "h": 270.5
  },
  "luminance": 0.02038
}

Semantic roles & 50–950 ramp

primary
#151D68
secondary
#9F953A
accent
#D93EE9
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #151D68

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

Preview Lab → · Contrast checker → · Palette generator →

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