#0B0542#0B0542

#0B0542 is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 19.1% C 0.107 H 274.4°. Best body text is #FFFFFF at 18.84:1 contrast (WCAG AA passes).

Color values

HEX#0B0542
RGBrgb(11, 5, 66)
HSLhsl(246, 86%, 14%)
HSVhsv(246, 92%, 26%)
CMYKcmyk(83.3%, 92.4%, 0%, 74.1%)
CIE-LABlab(5.17, 24.35, -36.06)
CIE-LCHlch(5.17, 43.51, 304.03°)
OKLaboklab(19.06% 0.0083 -0.1063)
OKLCHoklch(19.06% 0.107 274.4)
XYZxyz(1.1753, 0.5729, 5.2018)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B0542 #3C4205
analogous
#051E42 #0B0542 #2A0542
triadic
#0B0542 #420B05 #05420B
tetradic
#0B0542 #42051E #3C4205 #05422A
square
#0B0542 #42051E #3C4205 #05422A
split-complementary
#0B0542 #422A05 #1E4205
monochromatic
#05021C #05021C #0B0542 #14097B #1E0EB4

Accessibility & contrast

On white

18.84
#0B0542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0B0542
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B0542#FFFFFF#000000##FFFFFF
##0B05421.0018.841.1118.84
#FFFFFF18.841.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001444
Deuteranopia (green-blind)
#000E41
Tritanopia (blue-blind)
#001824
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0b0542;
/* rgb */ color: rgb(11, 5, 66);
/* oklch */ color: oklch(19.1% 0.107 274.4);
Tailwind
colors: {
  custom: {
    50: '#554777',
    500: '#0b0542',
    950: '#000000',
  },
}
SCSS
$custom: #0b0542;
$custom-light: #554777;
$custom-dark: #000000;
JSON
{
  "hex": "#0b0542",
  "rgb": {
    "r": 11,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 245.902,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.19063,
    "c": 0.10667,
    "h": 274.4
  },
  "luminance": 0.00573
}

Semantic roles & 50–950 ramp

primary
#0B0542
secondary
#798220
accent
#FC2CE8
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030009
muted
#78777B

Preview Lab

Preview with #0B0542

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

Preview Lab → · Contrast checker → · Palette generator →

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