#0B022F#0B022F

#0B022F is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.8% C 0.086 H 282.4°. Best body text is #FFFFFF at 19.74:1 contrast (WCAG AA passes).

Color values

HEX#0B022F
RGBrgb(11, 2, 47)
HSLhsl(252, 92%, 10%)
HSVhsv(252, 96%, 18%)
CMYKcmyk(76.6%, 95.7%, 0%, 81.6%)
CIE-LABlab(2.89, 15.10, -25.86)
CIE-LCHlch(2.89, 29.95, 300.28°)
OKLaboklab(15.76% 0.0183 -0.0835)
OKLCHoklch(15.76% 0.086 282.4)
XYZxyz(0.6726, 0.3198, 2.7150)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B022F #262F02
analogous
#02102F #0B022F #22022F
triadic
#0B022F #2F0B02 #022F0B
tetradic
#0B022F #2F0210 #262F02 #022F22
square
#0B022F #2F0210 #262F02 #022F22
split-complementary
#0B022F #2F2202 #102F02
monochromatic
#07011D #07011D #0B022F #19046A #2607A4

Accessibility & contrast

On white

19.74
#0B022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0B022F
19.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B022F#FFFFFF#000000##FFFFFF
##0B022F1.0019.741.0619.74
#FFFFFF19.741.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C30
Deuteranopia (green-blind)
#00092E
Tritanopia (blue-blind)
#000E18
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #0b022f;
/* rgb */ color: rgb(11, 2, 47);
/* oklch */ color: oklch(15.8% 0.086 282.4);
Tailwind
colors: {
  custom: {
    50: '#4d4768',
    500: '#0b022f',
    950: '#000000',
  },
}
SCSS
$custom: #0b022f;
$custom-light: #4d4768;
$custom-dark: #000000;
JSON
{
  "hex": "#0b022f",
  "rgb": {
    "r": 11,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 252,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.15763,
    "c": 0.08553,
    "h": 282.4
  },
  "luminance": 0.0032
}

Semantic roles & 50–950 ramp

primary
#0B022F
secondary
#627419
accent
#FF29D4
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0B022F

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

Preview Lab → · Contrast checker → · Palette generator →

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