#0F012A#0F012A

#0F012A is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.3% C 0.081 H 292.3°. Best body text is #FFFFFF at 19.85:1 contrast (WCAG AA passes).

Color values

HEX#0F012A
RGBrgb(15, 1, 42)
HSLhsl(260, 95%, 8%)
HSVhsv(260, 98%, 16%)
CMYKcmyk(64.3%, 97.6%, 0%, 83.5%)
CIE-LABlab(2.62, 14.32, -22.47)
CIE-LCHlch(2.62, 26.65, 302.51°)
OKLaboklab(15.32% 0.0307 -0.0748)
OKLCHoklch(15.32% 0.081 292.3)
XYZxyz(0.6257, 0.2904, 2.2131)
Luminance0.0029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F012A #1C2A01
analogous
#01072A #0F012A #23012A
triadic
#0F012A #2A0F01 #012A0F
tetradic
#0F012A #2A0107 #1C2A01 #012A23
square
#0F012A #2A0107 #1C2A01 #012A23
split-complementary
#0F012A #2A2301 #072A01
monochromatic
#0B011E #0B011E #0F012A #240266 #3A04A2

Accessibility & contrast

On white

19.85
#0F012A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#0F012A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F012A
19.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F012A#FFFFFF#000000##FFFFFF
##0F012A1.0019.851.0619.85
#FFFFFF19.851.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A2B
Deuteranopia (green-blind)
#000929
Tritanopia (blue-blind)
#060B15
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0f012a;
/* rgb */ color: rgb(15, 1, 42);
/* oklch */ color: oklch(15.3% 0.081 292.3);
Tailwind
colors: {
  custom: {
    50: '#4e4764',
    500: '#0f012a',
    950: '#000000',
  },
}
SCSS
$custom: #0f012a;
$custom-light: #4e4764;
$custom-dark: #000000;
JSON
{
  "hex": "#0f012a",
  "rgb": {
    "r": 15,
    "g": 1,
    "b": 42
  },
  "hsl": {
    "h": 260.488,
    "s": 95.349,
    "l": 8.431
  },
  "oklch": {
    "l": 0.15321,
    "c": 0.08091,
    "h": 292.3
  },
  "luminance": 0.0029
}

Semantic roles & 50–950 ramp

primary
#0F012A
secondary
#527016
accent
#FF29B6
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020005
muted
#78777A

Preview Lab

Preview with #0F012A

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

Preview Lab → · Contrast checker → · Palette generator →

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