#0B022C#0B022C

#0B022C is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.3% C 0.081 H 284.0°. Best body text is #FFFFFF at 19.83:1 contrast (WCAG AA passes).

Color values

HEX#0B022C
RGBrgb(11, 2, 44)
HSLhsl(253, 91%, 9%)
HSVhsv(253, 95%, 17%)
CMYKcmyk(75%, 95.5%, 0%, 82.7%)
CIE-LABlab(2.68, 13.62, -23.93)
CIE-LCHlch(2.68, 27.53, 299.65°)
OKLaboklab(15.35% 0.0197 -0.079)
OKLCHoklch(15.35% 0.081 284)
XYZxyz(0.6142, 0.2964, 2.4072)
Luminance0.0030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B022C #232C02
analogous
#020E2C #0B022C #20022C
triadic
#0B022C #2C0B02 #022C0B
tetradic
#0B022C #2C020E #232C02 #022C20
square
#0B022C #2C020E #232C02 #022C20
split-complementary
#0B022C #2C2002 #0E2C02
monochromatic
#07011D #07011D #0B022C #1A0567 #2807A1

Accessibility & contrast

On white

19.83
#0B022C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0B022C
19.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B022C#FFFFFF#000000##FFFFFF
##0B022C1.0019.831.0619.83
#FFFFFF19.831.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0b022c;
/* rgb */ color: rgb(11, 2, 44);
/* oklch */ color: oklch(15.3% 0.081 284.0);
Tailwind
colors: {
  custom: {
    50: '#4d4765',
    500: '#0b022c',
    950: '#000000',
  },
}
SCSS
$custom: #0b022c;
$custom-light: #4d4765;
$custom-dark: #000000;
JSON
{
  "hex": "#0b022c",
  "rgb": {
    "r": 11,
    "g": 2,
    "b": 44
  },
  "hsl": {
    "h": 252.857,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.15346,
    "c": 0.08143,
    "h": 284
  },
  "luminance": 0.00296
}

Semantic roles & 50–950 ramp

primary
#0B022C
secondary
#5E7119
accent
#FF29D1
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010005
muted
#77777A

Preview Lab

Preview with #0B022C

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

Preview Lab → · Contrast checker → · Palette generator →

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