#0F042D#0F042D

#0F042D is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.5% C 0.078 H 288.0°. Best body text is #FFFFFF at 19.52:1 contrast (WCAG AA passes).

Color values

HEX#0F042D
RGBrgb(15, 4, 45)
HSLhsl(256, 84%, 10%)
HSVhsv(256, 91%, 18%)
CMYKcmyk(66.7%, 91.1%, 0%, 82.4%)
CIE-LABlab(3.41, 14.53, -23.51)
CIE-LCHlch(3.41, 27.64, 301.73°)
OKLaboklab(16.48% 0.0242 -0.0743)
OKLCHoklch(16.48% 0.078 288)
XYZxyz(0.7139, 0.3778, 2.5174)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F042D #222D04
analogous
#040D2D #0F042D #24042D
triadic
#0F042D #2D0F04 #042D0F
tetradic
#0F042D #2D040D #222D04 #042D24
square
#0F042D #2D040D #222D04 #042D24
split-complementary
#0F042D #2D2404 #0D2D04
monochromatic
#09021C #09021C #0F042D #220965 #340E9D

Accessibility & contrast

On white

19.52
#0F042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#0F042D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F042D
19.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F042D#FFFFFF#000000##FFFFFF
##0F042D1.0019.521.0819.52
#FFFFFF19.521.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2E
Deuteranopia (green-blind)
#000B2C
Tritanopia (blue-blind)
#040F17
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0f042d;
/* rgb */ color: rgb(15, 4, 45);
/* oklch */ color: oklch(16.5% 0.078 288.0);
Tailwind
colors: {
  custom: {
    50: '#4f4866',
    500: '#0f042d',
    950: '#000000',
  },
}
SCSS
$custom: #0f042d;
$custom-light: #4f4866;
$custom-dark: #000000;
JSON
{
  "hex": "#0f042d",
  "rgb": {
    "r": 15,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 256.098,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.1648,
    "c": 0.07815,
    "h": 288
  },
  "luminance": 0.00378
}

Semantic roles & 50–950 ramp

primary
#0F042D
secondary
#5A701D
accent
#FA2EC3
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0F042D

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

Preview Lab → · Contrast checker → · Palette generator →

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