#0F012E#0F012E

#0F012E is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.9% C 0.086 H 289.4°. Best body text is #FFFFFF at 19.73:1 contrast (WCAG AA passes).

Color values

HEX#0F012E
RGBrgb(15, 1, 46)
HSLhsl(259, 96%, 9%)
HSVhsv(259, 98%, 18%)
CMYKcmyk(67.4%, 97.8%, 0%, 82%)
CIE-LABlab(2.90, 16.23, -25.08)
CIE-LCHlch(2.90, 29.88, 302.91°)
OKLaboklab(15.86% 0.0285 -0.081)
OKLCHoklch(15.86% 0.086 289.4)
XYZxyz(0.7009, 0.3205, 2.6092)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F012E #202E01
analogous
#010A2E #0F012E #26012E
triadic
#0F012E #2E0F01 #012E0F
tetradic
#0F012E #2E010A #202E01 #012E26
square
#0F012E #2E010A #202E01 #012E26
split-complementary
#0F012E #2E2601 #0A2E01
monochromatic
#0A011E #0A011E #0F012E #23026A #3604A6

Accessibility & contrast

On white

19.73
#0F012E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F012E
19.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F012E#FFFFFF#000000##FFFFFF
##0F012E1.0019.731.0619.73
#FFFFFF19.731.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2F
Deuteranopia (green-blind)
#00092D
Tritanopia (blue-blind)
#040D17
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #0f012e;
/* rgb */ color: rgb(15, 1, 46);
/* oklch */ color: oklch(15.9% 0.086 289.4);
Tailwind
colors: {
  custom: {
    50: '#4f4667',
    500: '#0f012e',
    950: '#000000',
  },
}
SCSS
$custom: #0f012e;
$custom-light: #4f4667;
$custom-dark: #000000;
JSON
{
  "hex": "#0f012e",
  "rgb": {
    "r": 15,
    "g": 1,
    "b": 46
  },
  "hsl": {
    "h": 258.667,
    "s": 95.745,
    "l": 9.216
  },
  "oklch": {
    "l": 0.15857,
    "c": 0.08591,
    "h": 289.4
  },
  "luminance": 0.00321
}

Semantic roles & 50–950 ramp

primary
#0F012E
secondary
#577417
accent
#FF29BC
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0F012E

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

Preview Lab → · Contrast checker → · Palette generator →

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