#0B042B#0B042B

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

Color values

HEX#0B042B
RGBrgb(11, 4, 43)
HSLhsl(251, 83%, 9%)
HSVhsv(251, 91%, 17%)
CMYKcmyk(74.4%, 90.7%, 0%, 83.1%)
CIE-LABlab(3.00, 12.35, -22.66)
CIE-LCHlch(3.00, 25.80, 298.58°)
OKLaboklab(15.76% 0.0173 -0.0737)
OKLCHoklch(15.76% 0.076 283.2)
XYZxyz(0.6173, 0.3324, 2.3167)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B042B #242B04
analogous
#04112B #0B042B #1F042B
triadic
#0B042B #2B0B04 #042B0B
tetradic
#0B042B #2B0411 #242B04 #042B1F
square
#0B042B #2B0411 #242B04 #042B1F
split-complementary
#0B042B #2B1F04 #112B04
monochromatic
#07031C #07031C #0B042B #190963 #280E9B

Accessibility & contrast

On white

19.69
#0B042B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0B042B
19.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B042B#FFFFFF#000000##FFFFFF
##0B042B1.0019.691.0719.69
#FFFFFF19.691.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2C
Deuteranopia (green-blind)
#000A2A
Tritanopia (blue-blind)
#000E16
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #0b042b;
/* rgb */ color: rgb(11, 4, 43);
/* oklch */ color: oklch(15.8% 0.076 283.2);
Tailwind
colors: {
  custom: {
    50: '#4c4864',
    500: '#0b042b',
    950: '#000000',
  },
}
SCSS
$custom: #0b042b;
$custom-light: #4c4864;
$custom-dark: #000000;
JSON
{
  "hex": "#0b042b",
  "rgb": {
    "r": 11,
    "g": 4,
    "b": 43
  },
  "hsl": {
    "h": 250.769,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.15756,
    "c": 0.07572,
    "h": 283.2
  },
  "luminance": 0.00332
}

Semantic roles & 50–950 ramp

primary
#0B042B
secondary
#5F6E1D
accent
#F92ED5
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #0B042B

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

Preview Lab → · Contrast checker → · Palette generator →

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