#0F043A#0F043A

#0F043A is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.1% C 0.096 H 281.4°. Best body text is #FFFFFF at 19.11:1 contrast (WCAG AA passes).

Color values

HEX#0F043A
RGBrgb(15, 4, 58)
HSLhsl(252, 87%, 12%)
HSVhsv(252, 93%, 23%)
CMYKcmyk(74.1%, 93.1%, 0%, 77.3%)
CIE-LABlab(4.46, 21.51, -31.46)
CIE-LCHlch(4.46, 38.11, 304.37°)
OKLaboklab(18.15% 0.019 -0.0943)
OKLCHoklch(18.15% 0.096 281.4)
XYZxyz(1.0039, 0.4938, 4.0446)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F043A #2F3A04
analogous
#04143A #0F043A #2A043A
triadic
#0F043A #3A0F04 #043A0F
tetradic
#0F043A #3A0414 #2F3A04 #043A2A
square
#0F043A #3A0414 #2F3A04 #043A2A
split-complementary
#0F043A #3A2A04 #143A04
monochromatic
#07021D #07021D #0F043A #1E0873 #2D0CAD

Accessibility & contrast

On white

19.11
#0F043A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#0F043A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F043A
19.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F043A#FFFFFF#000000##FFFFFF
##0F043A1.0019.111.1019.11
#FFFFFF19.111.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00113B
Deuteranopia (green-blind)
#000D39
Tritanopia (blue-blind)
#00141F
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #0f043a;
/* rgb */ color: rgb(15, 4, 58);
/* oklch */ color: oklch(18.1% 0.096 281.4);
Tailwind
colors: {
  custom: {
    50: '#544771',
    500: '#0f043a',
    950: '#000000',
  },
}
SCSS
$custom: #0f043a;
$custom-light: #544771;
$custom-dark: #000000;
JSON
{
  "hex": "#0f043a",
  "rgb": {
    "r": 15,
    "g": 4,
    "b": 58
  },
  "hsl": {
    "h": 252.222,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.18148,
    "c": 0.09617,
    "h": 281.4
  },
  "luminance": 0.00494
}

Semantic roles & 50–950 ramp

primary
#0F043A
secondary
#697C1E
accent
#FD2BD2
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#030008
muted
#78777B

Preview Lab

Preview with #0F043A

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

Preview Lab → · Contrast checker → · Palette generator →

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