#0F0440#0F0440

#0F0440 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.0% C 0.104 H 279.1°. Best body text is #FFFFFF at 18.89:1 contrast (WCAG AA passes).

Color values

HEX#0F0440
RGBrgb(15, 4, 64)
HSLhsl(251, 88%, 13%)
HSVhsv(251, 94%, 25%)
CMYKcmyk(76.6%, 93.8%, 0%, 74.9%)
CIE-LABlab(5.04, 24.59, -34.84)
CIE-LCHlch(5.04, 42.64, 305.22°)
OKLaboklab(18.96% 0.0165 -0.1029)
OKLCHoklch(18.96% 0.104 279.1)
XYZxyz(1.1655, 0.5585, 4.8959)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0440 #354004
analogous
#041740 #0F0440 #2D0440
triadic
#0F0440 #400F04 #04400F
tetradic
#0F0440 #400417 #354004 #04402D
square
#0F0440 #400417 #354004 #04402D
split-complementary
#0F0440 #402D04 #174004
monochromatic
#07021D #07021D #0F0440 #1C087A #2A0BB3

Accessibility & contrast

On white

18.89
#0F0440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0440
18.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0440#FFFFFF#000000##FFFFFF
##0F04401.0018.891.1118.89
#FFFFFF18.891.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001342
Deuteranopia (green-blind)
#000F3F
Tritanopia (blue-blind)
#001723
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #0f0440;
/* rgb */ color: rgb(15, 4, 64);
/* oklch */ color: oklch(19.0% 0.104 279.1);
Tailwind
colors: {
  custom: {
    50: '#564776',
    500: '#0f0440',
    950: '#000000',
  },
}
SCSS
$custom: #0f0440;
$custom-light: #564776;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0440",
  "rgb": {
    "r": 15,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 251,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.18956,
    "c": 0.1042,
    "h": 279.1
  },
  "luminance": 0.00559
}

Semantic roles & 50–950 ramp

primary
#0F0440
secondary
#6F811F
accent
#FE29D7
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #0F0440

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

Preview Lab → · Contrast checker → · Palette generator →

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