#151B65#151B65

#151B65 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.7% C 0.127 H 271.2°. Best body text is #FFFFFF at 15.25:1 contrast (WCAG AA passes).

Color values

HEX#151B65
RGBrgb(21, 27, 101)
HSLhsl(236, 66%, 24%)
HSVhsv(236, 79%, 40%)
CMYKcmyk(79.2%, 73.3%, 0%, 60.4%)
CIE-LABlab(14.86, 25.87, -44.03)
CIE-LCHlch(14.86, 51.07, 300.43°)
OKLaboklab(27.66% 0.0027 -0.1274)
OKLCHoklch(27.66% 0.127 271.2)
XYZxyz(3.0494, 1.8826, 12.5121)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#151B65 #655F15
analogous
#154365 #151B65 #371565
triadic
#151B65 #65151B #1B6515
tetradic
#151B65 #651543 #655F15 #156537
square
#151B65 #651543 #655F15 #156537
split-complementary
#151B65 #653715 #436515
monochromatic
#050719 #0A0D32 #151B65 #202998 #2A36CA

Accessibility & contrast

On white

15.25
#151B65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#151B65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #151B65
15.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##151B65#FFFFFF#000000##FFFFFF
##151B651.0015.251.3815.25
#FFFFFF15.251.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002264
Tritanopia (blue-blind)
#002F3D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #151b65;
/* rgb */ color: rgb(21, 27, 101);
/* oklch */ color: oklch(27.7% 0.127 271.2);
Tailwind
colors: {
  custom: {
    50: '#615792',
    500: '#151b65',
    950: '#000000',
  },
}
SCSS
$custom: #151b65;
$custom-light: #615792;
$custom-dark: #000000;
JSON
{
  "hex": "#151b65",
  "rgb": {
    "r": 21,
    "g": 27,
    "b": 101
  },
  "hsl": {
    "h": 235.5,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.27664,
    "c": 0.12744,
    "h": 271.2
  },
  "luminance": 0.01883
}

Semantic roles & 50–950 ramp

primary
#151B65
secondary
#9C953A
accent
#DC3FE9
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06030D
muted
#7A787E

Preview Lab

Preview with #151B65

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

Preview Lab → · Contrast checker → · Palette generator →

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