#0B022A#0B022A

#0B022A is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.1% C 0.079 H 285.2°. Best body text is #FFFFFF at 19.88:1 contrast (WCAG AA passes).

Color values

HEX#0B022A
RGBrgb(11, 2, 42)
HSLhsl(254, 91%, 9%)
HSVhsv(254, 95%, 16%)
CMYKcmyk(73.8%, 95.2%, 0%, 83.5%)
CIE-LABlab(2.54, 12.69, -22.62)
CIE-LCHlch(2.54, 25.93, 299.30°)
OKLaboklab(15.07% 0.0207 -0.0759)
OKLCHoklch(15.07% 0.079 285.2)
XYZxyz(0.5775, 0.2817, 2.2140)
Luminance0.0028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B022A #212A02
analogous
#020D2A #0B022A #1F022A
triadic
#0B022A #2A0B02 #022A0B
tetradic
#0B022A #2A020D #212A02 #022A1F
square
#0B022A #2A020D #212A02 #022A1F
split-complementary
#0B022A #2A1F02 #0D2A02
monochromatic
#08011D #08011D #0B022A #1A0564 #2A089F

Accessibility & contrast

On white

19.88
#0B022A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0B022A
19.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B022A#FFFFFF#000000##FFFFFF
##0B022A1.0019.881.0619.88
#FFFFFF19.881.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A2B
Deuteranopia (green-blind)
#000829
Tritanopia (blue-blind)
#000C15
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #0b022a;
/* rgb */ color: rgb(11, 2, 42);
/* oklch */ color: oklch(15.1% 0.079 285.2);
Tailwind
colors: {
  custom: {
    50: '#4c4764',
    500: '#0b022a',
    950: '#000000',
  },
}
SCSS
$custom: #0b022a;
$custom-light: #4c4764;
$custom-dark: #000000;
JSON
{
  "hex": "#0b022a",
  "rgb": {
    "r": 11,
    "g": 2,
    "b": 42
  },
  "hsl": {
    "h": 253.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.15073,
    "c": 0.07868,
    "h": 285.2
  },
  "luminance": 0.00282
}

Semantic roles & 50–950 ramp

primary
#0B022A
secondary
#5C6F19
accent
#FF29CF
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #0B022A

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

Preview Lab → · Contrast checker → · Palette generator →

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