#0B0236#0B0236

#0B0236 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.8% C 0.095 H 279.1°. Best body text is #FFFFFF at 19.51:1 contrast (WCAG AA passes).

Color values

HEX#0B0236
RGBrgb(11, 2, 54)
HSLhsl(250, 93%, 11%)
HSVhsv(250, 96%, 21%)
CMYKcmyk(79.6%, 96.3%, 0%, 78.8%)
CIE-LABlab(3.44, 18.99, -30.19)
CIE-LCHlch(3.44, 35.66, 302.16°)
OKLaboklab(16.76% 0.0151 -0.0937)
OKLCHoklch(16.76% 0.095 279.1)
XYZxyz(0.8254, 0.3808, 3.5193)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B0236 #2D3602
analogous
#021336 #0B0236 #250236
triadic
#0B0236 #360B02 #02360B
tetradic
#0B0236 #360213 #2D3602 #023625
square
#0B0236 #360213 #2D3602 #023625
split-complementary
#0B0236 #362502 #133602
monochromatic
#06011E #06011E #0B0236 #170471 #2306AC

Accessibility & contrast

On white

19.51
#0B0236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#0B0236 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0B0236
19.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B0236#FFFFFF#000000##FFFFFF
##0B02361.0019.511.0819.51
#FFFFFF19.511.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E37
Deuteranopia (green-blind)
#000A35
Tritanopia (blue-blind)
#00111C
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0b0236;
/* rgb */ color: rgb(11, 2, 54);
/* oklch */ color: oklch(16.8% 0.095 279.1);
Tailwind
colors: {
  custom: {
    50: '#50476e',
    500: '#0b0236',
    950: '#000000',
  },
}
SCSS
$custom: #0b0236;
$custom-light: #50476e;
$custom-dark: #000000;
JSON
{
  "hex": "#0b0236",
  "rgb": {
    "r": 11,
    "g": 2,
    "b": 54
  },
  "hsl": {
    "h": 250.385,
    "s": 92.857,
    "l": 10.98
  },
  "oklch": {
    "l": 0.16756,
    "c": 0.09494,
    "h": 279.1
  },
  "luminance": 0.00381
}

Semantic roles & 50–950 ramp

primary
#0B0236
secondary
#697A1A
accent
#FF29DA
background
#F4F3F6
surface
#E7E5EC
border
#C3C1C7
text
#020007
muted
#78777A

Preview Lab

Preview with #0B0236

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

Preview Lab → · Contrast checker → · Palette generator →

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