#0B0B40#0B0B40

#0B0B40 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.8% C 0.097 H 273.2°. Best body text is #FFFFFF at 18.48:1 contrast (WCAG AA passes).

Color values

HEX#0B0B40
RGBrgb(11, 11, 64)
HSLhsl(240, 71%, 15%)
HSVhsv(240, 83%, 25%)
CMYKcmyk(82.8%, 82.8%, 0%, 74.9%)
CIE-LABlab(6.15, 20.41, -33.04)
CIE-LCHlch(6.15, 38.84, 301.70°)
OKLaboklab(19.85% 0.0054 -0.0964)
OKLCHoklch(19.85% 0.097 273.2)
XYZxyz(1.1828, 0.6805, 4.9185)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B0B40 #40400B
analogous
#0B2640 #0B0B40 #260B40
triadic
#0B0B40 #400B0B #0B400B
tetradic
#0B0B40 #400B26 #40400B #0B4026
square
#0B0B40 #400B26 #40400B #0B4026
split-complementary
#0B0B40 #40260B #26400B
monochromatic
#04041A #04041A #0B0B40 #141474 #1D1DA8

Accessibility & contrast

On white

18.48
#0B0B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#0B0B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0B0B40
18.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B0B40#FFFFFF#000000##FFFFFF
##0B0B401.0018.481.1418.48
#FFFFFF18.481.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00113F
Tritanopia (blue-blind)
#001A24
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #0b0b40;
/* rgb */ color: rgb(11, 11, 64);
/* oklch */ color: oklch(19.8% 0.097 273.2);
Tailwind
colors: {
  custom: {
    50: '#544b75',
    500: '#0b0b40',
    950: '#000000',
  },
}
SCSS
$custom: #0b0b40;
$custom-light: #544b75;
$custom-dark: #000000;
JSON
{
  "hex": "#0b0b40",
  "rgb": {
    "r": 11,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 240,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.19845,
    "c": 0.09657,
    "h": 273.2
  },
  "luminance": 0.00681
}

Semantic roles & 50–950 ramp

primary
#0B0B40
secondary
#7D7D2A
accent
#ED3AED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0B0B40

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

Preview Lab → · Contrast checker → · Palette generator →

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