#0F042F#0F042F

#0F042F is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.7% C 0.081 H 286.8°. Best body text is #FFFFFF at 19.47:1 contrast (WCAG AA passes).

Color values

HEX#0F042F
RGBrgb(15, 4, 47)
HSLhsl(255, 84%, 10%)
HSVhsv(255, 91%, 18%)
CMYKcmyk(68.1%, 91.5%, 0%, 81.6%)
CIE-LABlab(3.56, 15.54, -24.79)
CIE-LCHlch(3.56, 29.25, 302.08°)
OKLaboklab(16.73% 0.0234 -0.0775)
OKLCHoklch(16.73% 0.081 286.8)
XYZxyz(0.7534, 0.3936, 2.7250)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F042F #242F04
analogous
#040E2F #0F042F #25042F
triadic
#0F042F #2F0F04 #042F0F
tetradic
#0F042F #2F040E #242F04 #042F25
square
#0F042F #2F040E #242F04 #042F25
split-complementary
#0F042F #2F2504 #0E2F04
monochromatic
#09021C #09021C #0F042F #210967 #330EA0

Accessibility & contrast

On white

19.47
#0F042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F042F
19.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F042F#FFFFFF#000000##FFFFFF
##0F042F1.0019.471.0819.47
#FFFFFF19.471.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E30
Deuteranopia (green-blind)
#000B2E
Tritanopia (blue-blind)
#030F19
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0f042f;
/* rgb */ color: rgb(15, 4, 47);
/* oklch */ color: oklch(16.7% 0.081 286.8);
Tailwind
colors: {
  custom: {
    50: '#504868',
    500: '#0f042f',
    950: '#000000',
  },
}
SCSS
$custom: #0f042f;
$custom-light: #504868;
$custom-dark: #000000;
JSON
{
  "hex": "#0f042f",
  "rgb": {
    "r": 15,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 255.349,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.16727,
    "c": 0.08098,
    "h": 286.8
  },
  "luminance": 0.00394
}

Semantic roles & 50–950 ramp

primary
#0F042F
secondary
#5C721D
accent
#FB2DC6
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0F042F

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

Preview Lab → · Contrast checker → · Palette generator →

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