#0F072F#0F072F

#0F072F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.4% C 0.075 H 284.9°. Best body text is #FFFFFF at 19.23:1 contrast (WCAG AA passes).

Color values

HEX#0F072F
RGBrgb(15, 7, 47)
HSLhsl(252, 74%, 11%)
HSVhsv(252, 85%, 18%)
CMYKcmyk(68.1%, 85.1%, 0%, 81.6%)
CIE-LABlab(4.14, 14.33, -23.85)
CIE-LCHlch(4.14, 27.83, 301.01°)
OKLaboklab(17.4% 0.0194 -0.0729)
OKLCHoklch(17.4% 0.075 284.9)
XYZxyz(0.7859, 0.4587, 2.7359)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F072F #272F07
analogous
#07132F #0F072F #23072F
triadic
#0F072F #2F0F07 #072F0F
tetradic
#0F072F #2F0713 #272F07 #072F23
square
#0F072F #2F0713 #272F07 #072F23
split-complementary
#0F072F #2F2307 #132F07
monochromatic
#09041B #09041B #0F072F #200F64 #31179A

Accessibility & contrast

On white

19.23
#0F072F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F072F
19.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F072F#FFFFFF#000000##FFFFFF
##0F072F1.0019.231.0919.23
#FFFFFF19.231.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001030
Deuteranopia (green-blind)
#000D2E
Tritanopia (blue-blind)
#02111A
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #0f072f;
/* rgb */ color: rgb(15, 7, 47);
/* oklch */ color: oklch(17.4% 0.075 284.9);
Tailwind
colors: {
  custom: {
    50: '#504968',
    500: '#0f072f',
    950: '#000000',
  },
}
SCSS
$custom: #0f072f;
$custom-light: #504968;
$custom-dark: #000000;
JSON
{
  "hex": "#0f072f",
  "rgb": {
    "r": 15,
    "g": 7,
    "b": 47
  },
  "hsl": {
    "h": 252,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.17403,
    "c": 0.07548,
    "h": 284.9
  },
  "luminance": 0.00459
}

Semantic roles & 50–950 ramp

primary
#0F072F
secondary
#606F23
accent
#F137CC
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0F072F

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

Preview Lab → · Contrast checker → · Palette generator →

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