#0B1540#0B1540

#0B1540 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.9% C 0.083 H 268.6°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#0B1540
RGBrgb(11, 21, 64)
HSLhsl(229, 71%, 15%)
HSVhsv(229, 83%, 25%)
CMYKcmyk(82.8%, 67.2%, 0%, 74.9%)
CIE-LABlab(8.80, 13.62, -28.70)
CIE-LCHlch(8.80, 31.77, 295.38°)
OKLaboklab(21.9% -0.0021 -0.0828)
OKLCHoklch(21.9% 0.083 268.6)
XYZxyz(1.3313, 0.9775, 4.9680)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B1540 #40360B
analogous
#0B3040 #0B1540 #1B0B40
triadic
#0B1540 #400B15 #15400B
tetradic
#0B1540 #400B30 #40360B #0B401B
square
#0B1540 #400B30 #40360B #0B401B
split-complementary
#0B1540 #401B0B #30400B
monochromatic
#04091A #04091A #0B1540 #142674 #1D37A8

Accessibility & contrast

On white

17.56
#0B1540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#0B1540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0B1540
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B1540#FFFFFF#000000##FFFFFF
##0B15401.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C41
Deuteranopia (green-blind)
#00173F
Tritanopia (blue-blind)
#002028
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0b1540;
/* rgb */ color: rgb(11, 21, 64);
/* oklch */ color: oklch(21.9% 0.083 268.6);
Tailwind
colors: {
  custom: {
    50: '#535175',
    500: '#0b1540',
    950: '#000000',
  },
}
SCSS
$custom: #0b1540;
$custom-light: #535175;
$custom-dark: #000000;
JSON
{
  "hex": "#0b1540",
  "rgb": {
    "r": 11,
    "g": 21,
    "b": 64
  },
  "hsl": {
    "h": 228.679,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21902,
    "c": 0.08286,
    "h": 268.6
  },
  "luminance": 0.00978
}

Semantic roles & 50–950 ramp

primary
#0B1540
secondary
#7D6D2A
accent
#CC3AED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0B1540

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

Preview Lab → · Contrast checker → · Palette generator →

#0B1540 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva