#0F043F#0F043F

#0F043F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.8% C 0.103 H 279.5°. Best body text is #FFFFFF at 18.93:1 contrast (WCAG AA passes).

Color values

HEX#0F043F
RGBrgb(15, 4, 63)
HSLhsl(251, 88%, 13%)
HSVhsv(251, 94%, 25%)
CMYKcmyk(76.2%, 93.7%, 0%, 75.3%)
CIE-LABlab(4.94, 24.09, -34.28)
CIE-LCHlch(4.94, 41.90, 305.10°)
OKLaboklab(18.82% 0.0169 -0.1015)
OKLCHoklch(18.82% 0.103 279.5)
XYZxyz(1.1373, 0.5472, 4.7473)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F043F #343F04
analogous
#04163F #0F043F #2C043F
triadic
#0F043F #3F0F04 #043F0F
tetradic
#0F043F #3F0416 #343F04 #043F2C
square
#0F043F #3F0416 #343F04 #043F2C
split-complementary
#0F043F #3F2C04 #163F04
monochromatic
#07021D #07021D #0F043F #1D0879 #2A0BB2

Accessibility & contrast

On white

18.93
#0F043F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#0F043F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F043F
18.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F043F#FFFFFF#000000##FFFFFF
##0F043F1.0018.931.1118.93
#FFFFFF18.931.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001341
Deuteranopia (green-blind)
#000E3E
Tritanopia (blue-blind)
#001622
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0f043f;
/* rgb */ color: rgb(15, 4, 63);
/* oklch */ color: oklch(18.8% 0.103 279.5);
Tailwind
colors: {
  custom: {
    50: '#564775',
    500: '#0f043f',
    950: '#000000',
  },
}
SCSS
$custom: #0f043f;
$custom-light: #564775;
$custom-dark: #000000;
JSON
{
  "hex": "#0f043f",
  "rgb": {
    "r": 15,
    "g": 4,
    "b": 63
  },
  "hsl": {
    "h": 251.186,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.1882,
    "c": 0.10287,
    "h": 279.5
  },
  "luminance": 0.00547
}

Semantic roles & 50–950 ramp

primary
#0F043F
secondary
#6E801E
accent
#FE2AD7
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #0F043F

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

Preview Lab → · Contrast checker → · Palette generator →

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