#0B012A#0B012A

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

Color values

HEX#0B012A
RGBrgb(11, 1, 42)
HSLhsl(255, 95%, 8%)
HSVhsv(255, 98%, 16%)
CMYKcmyk(73.8%, 97.6%, 0%, 83.5%)
CIE-LABlab(2.35, 13.09, -22.92)
CIE-LCHlch(2.35, 26.40, 299.73°)
OKLaboklab(14.78% 0.0223 -0.0779)
OKLCHoklch(14.78% 0.081 286)
XYZxyz(0.5667, 0.2600, 2.2104)
Luminance0.0026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B012A #202A01
analogous
#010B2A #0B012A #1F012A
triadic
#0B012A #2A0B01 #012A0B
tetradic
#0B012A #2A010B #202A01 #012A1F
square
#0B012A #2A010B #202A01 #012A1F
split-complementary
#0B012A #2A1F01 #0B2A01
monochromatic
#08011E #08011E #0B012A #1B0266 #2A04A2

Accessibility & contrast

On white

19.96
#0B012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#0B012A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0B012A
19.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B012A#FFFFFF#000000##FFFFFF
##0B012A1.0019.961.0519.96
#FFFFFF19.961.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0b012a;
/* rgb */ color: rgb(11, 1, 42);
/* oklch */ color: oklch(14.8% 0.081 286.0);
Tailwind
colors: {
  custom: {
    50: '#4c4764',
    500: '#0b012a',
    950: '#000000',
  },
}
SCSS
$custom: #0b012a;
$custom-light: #4c4764;
$custom-dark: #000000;
JSON
{
  "hex": "#0b012a",
  "rgb": {
    "r": 11,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 254.634,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.14779,
    "c": 0.08108,
    "h": 286
  },
  "luminance": 0.0026
}

Semantic roles & 50–950 ramp

primary
#0B012A
secondary
#5A7016
accent
#FF29CB
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010005
muted
#77777A

Preview Lab

Preview with #0B012A

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

Preview Lab → · Contrast checker → · Palette generator →

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