#0F012F#0F012F

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

Color values

HEX#0F012F
RGBrgb(15, 1, 47)
HSLhsl(258, 96%, 9%)
HSVhsv(258, 98%, 18%)
CMYKcmyk(68.1%, 97.9%, 0%, 81.6%)
CIE-LABlab(2.97, 16.74, -25.72)
CIE-LCHlch(2.97, 30.69, 303.05°)
OKLaboklab(15.99% 0.0279 -0.0826)
OKLCHoklch(15.99% 0.087 288.7)
XYZxyz(0.7208, 0.3285, 2.7142)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F012F #212F01
analogous
#010A2F #0F012F #26012F
triadic
#0F012F #2F0F01 #012F0F
tetradic
#0F012F #2F010A #212F01 #012F26
square
#0F012F #2F010A #212F01 #012F26
split-complementary
#0F012F #2F2601 #0A2F01
monochromatic
#0A011E #0A011E #0F012F #22026B #3504A7

Accessibility & contrast

On white

19.70
#0F012F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F012F
19.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F012F#FFFFFF#000000##FFFFFF
##0F012F1.0019.701.0719.70
#FFFFFF19.701.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C30
Deuteranopia (green-blind)
#000A2E
Tritanopia (blue-blind)
#030D18
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #0f012f;
/* rgb */ color: rgb(15, 1, 47);
/* oklch */ color: oklch(16.0% 0.087 288.7);
Tailwind
colors: {
  custom: {
    50: '#504668',
    500: '#0f012f',
    950: '#000000',
  },
}
SCSS
$custom: #0f012f;
$custom-light: #504668;
$custom-dark: #000000;
JSON
{
  "hex": "#0f012f",
  "rgb": {
    "r": 15,
    "g": 1,
    "b": 47
  },
  "hsl": {
    "h": 258.261,
    "s": 95.833,
    "l": 9.412
  },
  "oklch": {
    "l": 0.15993,
    "c": 0.08717,
    "h": 288.7
  },
  "luminance": 0.00329
}

Semantic roles & 50–950 ramp

primary
#0F012F
secondary
#587517
accent
#FF29BE
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0F012F

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

Preview Lab → · Contrast checker → · Palette generator →

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