#0F072C#0F072C

#0F072C is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.1% C 0.071 H 286.5°. Best body text is #FFFFFF at 19.32:1 contrast (WCAG AA passes).

Color values

HEX#0F072C
RGBrgb(15, 7, 44)
HSLhsl(253, 73%, 10%)
HSVhsv(253, 84%, 17%)
CMYKcmyk(65.9%, 84.1%, 0%, 82.7%)
CIE-LABlab(3.93, 12.85, -21.93)
CIE-LCHlch(3.93, 25.42, 300.38°)
OKLaboklab(17.06% 0.0201 -0.0679)
OKLCHoklch(17.06% 0.071 286.5)
XYZxyz(0.7275, 0.4353, 2.4281)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F072C #242C07
analogous
#07112C #0F072C #22072C
triadic
#0F072C #2C0F07 #072C0F
tetradic
#0F072C #2C0711 #242C07 #072C22
square
#0F072C #2C0711 #242C07 #072C22
split-complementary
#0F072C #2C2207 #112C07
monochromatic
#09041A #09041A #0F072C #210F61 #331896

Accessibility & contrast

On white

19.32
#0F072C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#0F072C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F072C
19.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F072C#FFFFFF#000000##FFFFFF
##0F072C1.0019.321.0919.32
#FFFFFF19.321.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2D
Deuteranopia (green-blind)
#000D2B
Tritanopia (blue-blind)
#041018
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0f072c;
/* rgb */ color: rgb(15, 7, 44);
/* oklch */ color: oklch(17.1% 0.071 286.5);
Tailwind
colors: {
  custom: {
    50: '#4f4965',
    500: '#0f072c',
    950: '#000000',
  },
}
SCSS
$custom: #0f072c;
$custom-light: #4f4965;
$custom-dark: #000000;
JSON
{
  "hex": "#0f072c",
  "rgb": {
    "r": 15,
    "g": 7,
    "b": 44
  },
  "hsl": {
    "h": 252.973,
    "s": 72.549,
    "l": 10
  },
  "oklch": {
    "l": 0.17062,
    "c": 0.07084,
    "h": 286.5
  },
  "luminance": 0.00435
}

Semantic roles & 50–950 ramp

primary
#0F072C
secondary
#5C6C23
accent
#EF39C8
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020105
muted
#78777A

Preview Lab

Preview with #0F072C

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

Preview Lab → · Contrast checker → · Palette generator →

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