#0B0540#0B0540

#0B0540 is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.8% C 0.104 H 274.9°. Best body text is #FFFFFF at 18.92:1 contrast (WCAG AA passes).

Color values

HEX#0B0540
RGBrgb(11, 5, 64)
HSLhsl(246, 86%, 14%)
HSVhsv(246, 92%, 25%)
CMYKcmyk(82.8%, 92.2%, 0%, 74.9%)
CIE-LABlab(4.97, 23.32, -34.98)
CIE-LCHlch(4.97, 42.04, 303.70°)
OKLaboklab(18.79% 0.0089 -0.1036)
OKLCHoklch(18.79% 0.104 274.9)
XYZxyz(1.1174, 0.5497, 4.8967)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B0540 #3A4005
analogous
#051C40 #0B0540 #280540
triadic
#0B0540 #400B05 #05400B
tetradic
#0B0540 #40051C #3A4005 #054028
square
#0B0540 #40051C #3A4005 #054028
split-complementary
#0B0540 #402805 #1C4005
monochromatic
#05021C #05021C #0B0540 #150979 #1F0EB2

Accessibility & contrast

On white

18.92
#0B0540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#0B0540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0B0540
18.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B0540#FFFFFF#000000##FFFFFF
##0B05401.0018.921.1118.92
#FFFFFF18.921.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001342
Deuteranopia (green-blind)
#000E3F
Tritanopia (blue-blind)
#001723
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0b0540;
/* rgb */ color: rgb(11, 5, 64);
/* oklch */ color: oklch(18.8% 0.104 274.9);
Tailwind
colors: {
  custom: {
    50: '#544776',
    500: '#0b0540',
    950: '#000000',
  },
}
SCSS
$custom: #0b0540;
$custom-light: #544776;
$custom-dark: #000000;
JSON
{
  "hex": "#0b0540",
  "rgb": {
    "r": 11,
    "g": 5,
    "b": 64
  },
  "hsl": {
    "h": 246.102,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.18786,
    "c": 0.10396,
    "h": 274.9
  },
  "luminance": 0.0055
}

Semantic roles & 50–950 ramp

primary
#0B0540
secondary
#778120
accent
#FC2CE7
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #0B0540

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

Preview Lab → · Contrast checker → · Palette generator →

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