#0B0231#0B0231

#0B0231 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 16.0% C 0.088 H 281.4°. Best body text is #FFFFFF at 19.68:1 contrast (WCAG AA passes).

Color values

HEX#0B0231
RGBrgb(11, 2, 49)
HSLhsl(251, 92%, 10%)
HSVhsv(251, 96%, 19%)
CMYKcmyk(77.6%, 95.9%, 0%, 80.8%)
CIE-LABlab(3.04, 16.15, -27.13)
CIE-LCHlch(3.04, 31.57, 300.77°)
OKLaboklab(16.04% 0.0174 -0.0865)
OKLCHoklch(16.04% 0.088 281.4)
XYZxyz(0.7139, 0.3363, 2.9324)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B0231 #283102
analogous
#021131 #0B0231 #220231
triadic
#0B0231 #310B02 #02310B
tetradic
#0B0231 #310211 #283102 #023122
square
#0B0231 #310211 #283102 #023122
split-complementary
#0B0231 #312202 #113102
monochromatic
#07011D #07011D #0B0231 #18046C #2507A7

Accessibility & contrast

On white

19.68
#0B0231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0B0231
19.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B0231#FFFFFF#000000##FFFFFF
##0B02311.0019.681.0719.68
#FFFFFF19.681.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D32
Deuteranopia (green-blind)
#000930
Tritanopia (blue-blind)
#000F19
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #0b0231;
/* rgb */ color: rgb(11, 2, 49);
/* oklch */ color: oklch(16.0% 0.088 281.4);
Tailwind
colors: {
  custom: {
    50: '#4e4769',
    500: '#0b0231',
    950: '#000000',
  },
}
SCSS
$custom: #0b0231;
$custom-light: #4e4769;
$custom-dark: #000000;
JSON
{
  "hex": "#0b0231",
  "rgb": {
    "r": 11,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 251.489,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.16043,
    "c": 0.08824,
    "h": 281.4
  },
  "luminance": 0.00336
}

Semantic roles & 50–950 ramp

primary
#0B0231
secondary
#647519
accent
#FF29D6
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0B0231

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

Preview Lab → · Contrast checker → · Palette generator →

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