#0F012C#0F012C

#0F012C is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.6% C 0.083 H 290.8°. Best body text is #FFFFFF at 19.79:1 contrast (WCAG AA passes).

Color values

HEX#0F012C
RGBrgb(15, 1, 44)
HSLhsl(260, 96%, 9%)
HSVhsv(260, 98%, 17%)
CMYKcmyk(65.9%, 97.7%, 0%, 82.7%)
CIE-LABlab(2.76, 15.25, -23.79)
CIE-LCHlch(2.76, 28.26, 302.67°)
OKLaboklab(15.59% 0.0296 -0.078)
OKLCHoklch(15.59% 0.083 290.8)
XYZxyz(0.6623, 0.3051, 2.4064)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F012C #1E2C01
analogous
#01092C #0F012C #25012C
triadic
#0F012C #2C0F01 #012C0F
tetradic
#0F012C #2C0109 #1E2C01 #012C25
square
#0F012C #2C0109 #1E2C01 #012C25
split-complementary
#0F012C #2C2501 #092C01
monochromatic
#0A011E #0A011E #0F012C #230268 #3804A4

Accessibility & contrast

On white

19.79
#0F012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F012C
19.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F012C#FFFFFF#000000##FFFFFF
##0F012C1.0019.791.0619.79
#FFFFFF19.791.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2D
Deuteranopia (green-blind)
#00092B
Tritanopia (blue-blind)
#050C16
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0f012c;
/* rgb */ color: rgb(15, 1, 44);
/* oklch */ color: oklch(15.6% 0.083 290.8);
Tailwind
colors: {
  custom: {
    50: '#4f4765',
    500: '#0f012c',
    950: '#000000',
  },
}
SCSS
$custom: #0f012c;
$custom-light: #4f4765;
$custom-dark: #000000;
JSON
{
  "hex": "#0f012c",
  "rgb": {
    "r": 15,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 259.535,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.15587,
    "c": 0.08341,
    "h": 290.8
  },
  "luminance": 0.00305
}

Semantic roles & 50–950 ramp

primary
#0F012C
secondary
#547217
accent
#FF29B9
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020005
muted
#78777A

Preview Lab

Preview with #0F012C

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

Preview Lab → · Contrast checker → · Palette generator →

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