#0B0128#0B0128

#0B0128 is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 14.5% C 0.078 H 287.4°. Best body text is #FFFFFF at 20.02:1 contrast (WCAG AA passes).

Color values

HEX#0B0128
RGBrgb(11, 1, 40)
HSLhsl(255, 95%, 8%)
HSVhsv(255, 98%, 16%)
CMYKcmyk(72.5%, 97.5%, 0%, 84.3%)
CIE-LABlab(2.22, 12.21, -21.58)
CIE-LCHlch(2.22, 24.80, 299.49°)
OKLaboklab(14.5% 0.0234 -0.0749)
OKLCHoklch(14.5% 0.078 287.4)
XYZxyz(0.5318, 0.2460, 2.0265)
Luminance0.0025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B0128 #1E2801
analogous
#010A28 #0B0128 #1E0128
triadic
#0B0128 #280B01 #01280B
tetradic
#0B0128 #28010A #1E2801 #01281E
square
#0B0128 #28010A #1E2801 #01281E
split-complementary
#0B0128 #281E01 #0A2801
monochromatic
#08011E #08011E #0B0128 #1B0264 #2C049F

Accessibility & contrast

On white

20.02
#0B0128 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0B0128
20.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B0128#FFFFFF#000000##FFFFFF
##0B01281.0020.021.0520.02
#FFFFFF20.021.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000929
Deuteranopia (green-blind)
#000727
Tritanopia (blue-blind)
#010A13
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #0b0128;
/* rgb */ color: rgb(11, 1, 40);
/* oklch */ color: oklch(14.5% 0.078 287.4);
Tailwind
colors: {
  custom: {
    50: '#4c4762',
    500: '#0b0128',
    950: '#000000',
  },
}
SCSS
$custom: #0b0128;
$custom-light: #4c4762;
$custom-dark: #000000;
JSON
{
  "hex": "#0b0128",
  "rgb": {
    "r": 11,
    "g": 1,
    "b": 40
  },
  "hsl": {
    "h": 255.385,
    "s": 95.122,
    "l": 8.039
  },
  "oklch": {
    "l": 0.14497,
    "c": 0.07845,
    "h": 287.4
  },
  "luminance": 0.00246
}

Semantic roles & 50–950 ramp

primary
#0B0128
secondary
#586F16
accent
#FF29C8
background
#F4F3F5
surface
#E7E5EA
border
#C3C1C6
text
#010005
muted
#777779

Preview Lab

Preview with #0B0128

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

Preview Lab → · Contrast checker → · Palette generator →

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