#151F68#151F68

#151F68 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.7% C 0.127 H 270.0°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#151F68
RGBrgb(21, 31, 104)
HSLhsl(233, 66%, 25%)
HSVhsv(233, 80%, 41%)
CMYKcmyk(79.8%, 70.2%, 0%, 59.2%)
CIE-LABlab(16.20, 24.28, -43.80)
CIE-LCHlch(16.20, 50.08, 299.00°)
OKLaboklab(28.73% -0.0001 -0.1267)
OKLCHoklch(28.73% 0.127 270)
XYZxyz(3.2971, 2.1385, 13.3330)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F68 #685E15
analogous
#154968 #151F68 #351568
triadic
#151F68 #68151F #1F6815
tetradic
#151F68 #681549 #685E15 #156835
square
#151F68 #681549 #685E15 #156835
split-complementary
#151F68 #683515 #496815
monochromatic
#050819 #0B1035 #151F68 #1F2E9B #2A3DCE

Accessibility & contrast

On white

14.71
#151F68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#151F68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F68
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F68#FFFFFF#000000##FFFFFF
##151F681.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6A
Deuteranopia (green-blind)
#002467
Tritanopia (blue-blind)
#003340
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #151f68;
/* rgb */ color: rgb(21, 31, 104);
/* oklch */ color: oklch(28.7% 0.127 270.0);
Tailwind
colors: {
  custom: {
    50: '#625a94',
    500: '#151f68',
    950: '#000000',
  },
}
SCSS
$custom: #151f68;
$custom-light: #625a94;
$custom-dark: #000000;
JSON
{
  "hex": "#151f68",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 104
  },
  "hsl": {
    "h": 232.771,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28732,
    "c": 0.12673,
    "h": 270
  },
  "luminance": 0.02139
}

Semantic roles & 50–950 ramp

primary
#151F68
secondary
#9F933A
accent
#D53EE9
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #151F68

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

Preview Lab → · Contrast checker → · Palette generator →

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