#0F072E#0F072E

#0F072E is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.3% C 0.074 H 285.4°. Best body text is #FFFFFF at 19.26:1 contrast (WCAG AA passes).

Color values

HEX#0F072E
RGBrgb(15, 7, 46)
HSLhsl(252, 74%, 10%)
HSVhsv(252, 85%, 18%)
CMYKcmyk(67.4%, 84.8%, 0%, 82%)
CIE-LABlab(4.07, 13.83, -23.21)
CIE-LCHlch(4.07, 27.02, 300.78°)
OKLaboklab(17.29% 0.0196 -0.0713)
OKLCHoklch(17.29% 0.074 285.4)
XYZxyz(0.7660, 0.4507, 2.6309)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F072E #262E07
analogous
#07122E #0F072E #22072E
triadic
#0F072E #2E0F07 #072E0F
tetradic
#0F072E #2E0712 #262E07 #072E22
square
#0F072E #2E0712 #262E07 #072E22
split-complementary
#0F072E #2E2207 #122E07
monochromatic
#09041B #09041B #0F072E #200F63 #321798

Accessibility & contrast

On white

19.26
#0F072E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F072E
19.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F072E#FFFFFF#000000##FFFFFF
##0F072E1.0019.261.0919.26
#FFFFFF19.261.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2F
Deuteranopia (green-blind)
#000D2D
Tritanopia (blue-blind)
#031119
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0f072e;
/* rgb */ color: rgb(15, 7, 46);
/* oklch */ color: oklch(17.3% 0.074 285.4);
Tailwind
colors: {
  custom: {
    50: '#504967',
    500: '#0f072e',
    950: '#000000',
  },
}
SCSS
$custom: #0f072e;
$custom-light: #504967;
$custom-dark: #000000;
JSON
{
  "hex": "#0f072e",
  "rgb": {
    "r": 15,
    "g": 7,
    "b": 46
  },
  "hsl": {
    "h": 252.308,
    "s": 73.585,
    "l": 10.392
  },
  "oklch": {
    "l": 0.17288,
    "c": 0.07394,
    "h": 285.4
  },
  "luminance": 0.00451
}

Semantic roles & 50–950 ramp

primary
#0F072E
secondary
#5E6E23
accent
#F038CA
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0F072E

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

Preview Lab → · Contrast checker → · Palette generator →

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