#0B012D#0B012D

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

Color values

HEX#0B012D
RGBrgb(11, 1, 45)
HSLhsl(254, 96%, 9%)
HSVhsv(254, 98%, 18%)
CMYKcmyk(75.6%, 97.8%, 0%, 82.4%)
CIE-LABlab(2.55, 14.50, -24.89)
CIE-LCHlch(2.55, 28.81, 300.23°)
OKLaboklab(15.21% 0.0207 -0.0824)
OKLCHoklch(15.21% 0.085 284.1)
XYZxyz(0.6224, 0.2823, 2.5038)
Luminance0.0028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B012D #232D01
analogous
#010D2D #0B012D #21012D
triadic
#0B012D #2D0B01 #012D0B
tetradic
#0B012D #2D010D #232D01 #012D21
square
#0B012D #2D010D #232D01 #012D21
split-complementary
#0B012D #2D2101 #0D2D01
monochromatic
#07011E #07011E #0B012D #1A0269 #2804A5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0B012D#FFFFFF#000000##FFFFFF
##0B012D1.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)
#000B2E
Deuteranopia (green-blind)
#00082C
Tritanopia (blue-blind)
#000D16
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #0b012d;
/* rgb */ color: rgb(11, 1, 45);
/* oklch */ color: oklch(15.2% 0.085 284.1);
Tailwind
colors: {
  custom: {
    50: '#4d4766',
    500: '#0b012d',
    950: '#000000',
  },
}
SCSS
$custom: #0b012d;
$custom-light: #4d4766;
$custom-dark: #000000;
JSON
{
  "hex": "#0b012d",
  "rgb": {
    "r": 11,
    "g": 1,
    "b": 45
  },
  "hsl": {
    "h": 253.636,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.15206,
    "c": 0.08501,
    "h": 284.1
  },
  "luminance": 0.00282
}

Semantic roles & 50–950 ramp

primary
#0B012D
secondary
#5E7317
accent
#FF29CE
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#010006
muted
#77777A

Preview Lab

Preview with #0B012D

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

Preview Lab → · Contrast checker → · Palette generator →

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