#0F0331#0F0331

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

Color values

HEX#0F0331
RGBrgb(15, 3, 49)
HSLhsl(256, 88%, 10%)
HSVhsv(256, 94%, 19%)
CMYKcmyk(69.4%, 93.9%, 0%, 80.8%)
CIE-LABlab(3.51, 16.99, -26.36)
CIE-LCHlch(3.51, 31.36, 302.80°)
OKLaboklab(16.75% 0.024 -0.0822)
OKLCHoklch(16.75% 0.086 286.3)
XYZxyz(0.7838, 0.3884, 2.9388)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0331 #253103
analogous
#030E31 #0F0331 #260331
triadic
#0F0331 #310F03 #03310F
tetradic
#0F0331 #31030E #253103 #033126
square
#0F0331 #31030E #253103 #033126
split-complementary
#0F0331 #312603 #0E3103
monochromatic
#09021D #09021D #0F0331 #21076B #320AA4

Accessibility & contrast

On white

19.49
#0F0331 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0331
19.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0331#FFFFFF#000000##FFFFFF
##0F03311.0019.491.0819.49
#FFFFFF19.491.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E32
Deuteranopia (green-blind)
#000B30
Tritanopia (blue-blind)
#011019
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0f0331;
/* rgb */ color: rgb(15, 3, 49);
/* oklch */ color: oklch(16.7% 0.086 286.3);
Tailwind
colors: {
  custom: {
    50: '#504769',
    500: '#0f0331',
    950: '#000000',
  },
}
SCSS
$custom: #0f0331;
$custom-light: #504769;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0331",
  "rgb": {
    "r": 15,
    "g": 3,
    "b": 49
  },
  "hsl": {
    "h": 255.652,
    "s": 88.462,
    "l": 10.196
  },
  "oklch": {
    "l": 0.16748,
    "c": 0.08567,
    "h": 286.3
  },
  "luminance": 0.00388
}

Semantic roles & 50–950 ramp

primary
#0F0331
secondary
#5D741B
accent
#FF29C7
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0F0331

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

Preview Lab → · Contrast checker → · Palette generator →

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