#0B0331#0B0331

#0B0331 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.3% C 0.086 H 280.8°. Best body text is #FFFFFF at 19.60:1 contrast (WCAG AA passes).

Color values

HEX#0B0331
RGBrgb(11, 3, 49)
HSLhsl(250, 88%, 10%)
HSVhsv(250, 94%, 19%)
CMYKcmyk(77.6%, 93.9%, 0%, 80.8%)
CIE-LABlab(3.23, 15.75, -26.81)
CIE-LCHlch(3.23, 31.10, 300.43°)
OKLaboklab(16.29% 0.0162 -0.0848)
OKLCHoklch(16.29% 0.086 280.8)
XYZxyz(0.7248, 0.3580, 2.9360)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B0331 #293103
analogous
#031231 #0B0331 #220331
triadic
#0B0331 #310B03 #03310B
tetradic
#0B0331 #310312 #293103 #033122
square
#0B0331 #310312 #293103 #033122
split-complementary
#0B0331 #312203 #123103
monochromatic
#06021D #06021D #0B0331 #18076B #250AA4

Accessibility & contrast

On white

19.60
#0B0331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#0B0331 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0B0331
19.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B0331#FFFFFF#000000##FFFFFF
##0B03311.0019.601.0719.60
#FFFFFF19.601.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D32
Deuteranopia (green-blind)
#000A30
Tritanopia (blue-blind)
#001019
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0b0331;
/* rgb */ color: rgb(11, 3, 49);
/* oklch */ color: oklch(16.3% 0.086 280.8);
Tailwind
colors: {
  custom: {
    50: '#4e4769',
    500: '#0b0331',
    950: '#000000',
  },
}
SCSS
$custom: #0b0331;
$custom-light: #4e4769;
$custom-dark: #000000;
JSON
{
  "hex": "#0b0331",
  "rgb": {
    "r": 11,
    "g": 3,
    "b": 49
  },
  "hsl": {
    "h": 250.435,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.16294,
    "c": 0.08633,
    "h": 280.8
  },
  "luminance": 0.00358
}

Semantic roles & 50–950 ramp

primary
#0B0331
secondary
#65741B
accent
#FF29D9
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0B0331

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

Preview Lab → · Contrast checker → · Palette generator →

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