#151F65#151F65

#151F65 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.4% C 0.122 H 270.1°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#151F65
RGBrgb(21, 31, 101)
HSLhsl(233, 66%, 24%)
HSVhsv(233, 79%, 40%)
CMYKcmyk(79.2%, 69.3%, 0%, 60.4%)
CIE-LABlab(15.89, 23.08, -42.33)
CIE-LCHlch(15.89, 48.21, 298.61°)
OKLaboklab(28.42% 0.0001 -0.1224)
OKLCHoklch(28.42% 0.122 270.1)
XYZxyz(3.1474, 2.0787, 12.5447)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151F65 #655B15
analogous
#154765 #151F65 #331565
triadic
#151F65 #65151F #1F6515
tetradic
#151F65 #651547 #655B15 #156533
square
#151F65 #651547 #655B15 #156533
split-complementary
#151F65 #653315 #476515
monochromatic
#050819 #0A0F32 #151F65 #202F98 #2A3ECA

Accessibility & contrast

On white

14.83
#151F65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#151F65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151F65
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151F65#FFFFFF#000000##FFFFFF
##151F651.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B67
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#00323F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #151f65;
/* rgb */ color: rgb(21, 31, 101);
/* oklch */ color: oklch(28.4% 0.122 270.1);
Tailwind
colors: {
  custom: {
    50: '#615a92',
    500: '#151f65',
    950: '#000000',
  },
}
SCSS
$custom: #151f65;
$custom-light: #615a92;
$custom-dark: #000000;
JSON
{
  "hex": "#151f65",
  "rgb": {
    "r": 21,
    "g": 31,
    "b": 101
  },
  "hsl": {
    "h": 232.5,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28418,
    "c": 0.12241,
    "h": 270.1
  },
  "luminance": 0.02079
}

Semantic roles & 50–950 ramp

primary
#151F65
secondary
#9C903A
accent
#D33FE9
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06040D
muted
#7A797E

Preview Lab

Preview with #151F65

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

Preview Lab → · Contrast checker → · Palette generator →

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