#0F072B#0F072B

#0F072B is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.0% C 0.069 H 287.0°. Best body text is #FFFFFF at 19.34:1 contrast (WCAG AA passes).

Color values

HEX#0F072B
RGBrgb(15, 7, 43)
HSLhsl(253, 72%, 10%)
HSVhsv(253, 84%, 17%)
CMYKcmyk(65.1%, 83.7%, 0%, 83.1%)
CIE-LABlab(3.87, 12.38, -21.28)
CIE-LCHlch(3.87, 24.62, 300.19°)
OKLaboklab(16.95% 0.0203 -0.0662)
OKLCHoklch(16.95% 0.069 287)
XYZxyz(0.7089, 0.4279, 2.3303)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F072B #232B07
analogous
#07112B #0F072B #21072B
triadic
#0F072B #2B0F07 #072B0F
tetradic
#0F072B #2B0711 #232B07 #072B21
square
#0F072B #2B0711 #232B07 #072B21
split-complementary
#0F072B #2B2107 #112B07
monochromatic
#09041A #09041A #0F072B #211060 #341894

Accessibility & contrast

On white

19.34
#0F072B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F072B
19.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F072B#FFFFFF#000000##FFFFFF
##0F072B1.0019.341.0919.34
#FFFFFF19.341.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2C
Deuteranopia (green-blind)
#000D2A
Tritanopia (blue-blind)
#051017
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0f072b;
/* rgb */ color: rgb(15, 7, 43);
/* oklch */ color: oklch(17.0% 0.069 287.0);
Tailwind
colors: {
  custom: {
    50: '#4f4964',
    500: '#0f072b',
    950: '#000000',
  },
}
SCSS
$custom: #0f072b;
$custom-light: #4f4964;
$custom-dark: #000000;
JSON
{
  "hex": "#0f072b",
  "rgb": {
    "r": 15,
    "g": 7,
    "b": 43
  },
  "hsl": {
    "h": 253.333,
    "s": 72,
    "l": 9.804
  },
  "oklch": {
    "l": 0.16951,
    "c": 0.06927,
    "h": 287
  },
  "luminance": 0.00428
}

Semantic roles & 50–950 ramp

primary
#0F072B
secondary
#5B6B23
accent
#EF39C6
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020105
muted
#78777A

Preview Lab

Preview with #0F072B

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

Preview Lab → · Contrast checker → · Palette generator →

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