#0B022B#0B022B

#0B022B is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.2% C 0.080 H 284.6°. Best body text is #FFFFFF at 19.85:1 contrast (WCAG AA passes).

Color values

HEX#0B022B
RGBrgb(11, 2, 43)
HSLhsl(253, 91%, 9%)
HSVhsv(253, 95%, 17%)
CMYKcmyk(74.4%, 95.3%, 0%, 83.1%)
CIE-LABlab(2.61, 13.15, -23.28)
CIE-LCHlch(2.61, 26.73, 299.46°)
OKLaboklab(15.21% 0.0202 -0.0775)
OKLCHoklch(15.21% 0.08 284.6)
XYZxyz(0.5956, 0.2889, 2.3094)
Luminance0.0029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B022B #222B02
analogous
#020E2B #0B022B #20022B
triadic
#0B022B #2B0B02 #022B0B
tetradic
#0B022B #2B020E #222B02 #022B20
square
#0B022B #2B020E #222B02 #022B20
split-complementary
#0B022B #2B2002 #0E2B02
monochromatic
#07011D #07011D #0B022B #1A0565 #2907A0

Accessibility & contrast

On white

19.85
#0B022B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#0B022B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0B022B
19.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B022B#FFFFFF#000000##FFFFFF
##0B022B1.0019.851.0619.85
#FFFFFF19.851.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2C
Deuteranopia (green-blind)
#00082A
Tritanopia (blue-blind)
#000D16
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0b022b;
/* rgb */ color: rgb(11, 2, 43);
/* oklch */ color: oklch(15.2% 0.080 284.6);
Tailwind
colors: {
  custom: {
    50: '#4c4764',
    500: '#0b022b',
    950: '#000000',
  },
}
SCSS
$custom: #0b022b;
$custom-light: #4c4764;
$custom-dark: #000000;
JSON
{
  "hex": "#0b022b",
  "rgb": {
    "r": 11,
    "g": 2,
    "b": 43
  },
  "hsl": {
    "h": 253.171,
    "s": 91.111,
    "l": 8.824
  },
  "oklch": {
    "l": 0.15209,
    "c": 0.08006,
    "h": 284.6
  },
  "luminance": 0.00289
}

Semantic roles & 50–950 ramp

primary
#0B022B
secondary
#5D7019
accent
#FF29D0
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #0B022B

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

Preview Lab → · Contrast checker → · Palette generator →

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