#0F082F#0F082F

#0F082F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.6% C 0.074 H 284.2°. Best body text is #FFFFFF at 19.16:1 contrast (WCAG AA passes).

Color values

HEX#0F082F
RGBrgb(15, 8, 47)
HSLhsl(251, 71%, 11%)
HSVhsv(251, 83%, 18%)
CMYKcmyk(68.1%, 83%, 0%, 81.6%)
CIE-LABlab(4.34, 13.94, -23.54)
CIE-LCHlch(4.34, 27.35, 300.63°)
OKLaboklab(17.62% 0.0181 -0.0715)
OKLCHoklch(17.62% 0.074 284.2)
XYZxyz(0.7968, 0.4804, 2.7395)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F082F #282F08
analogous
#08142F #0F082F #22082F
triadic
#0F082F #2F0F08 #082F0F
tetradic
#0F082F #2F0814 #282F08 #082F22
square
#0F082F #2F0814 #282F08 #082F22
split-complementary
#0F082F #2F2208 #142F08
monochromatic
#08041A #08041A #0F082F #201163 #301A98

Accessibility & contrast

On white

19.16
#0F082F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F082F
19.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F082F#FFFFFF#000000##FFFFFF
##0F082F1.0019.161.1019.16
#FFFFFF19.161.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001030
Deuteranopia (green-blind)
#000E2E
Tritanopia (blue-blind)
#02121A
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #0f082f;
/* rgb */ color: rgb(15, 8, 47);
/* oklch */ color: oklch(17.6% 0.074 284.2);
Tailwind
colors: {
  custom: {
    50: '#504a68',
    500: '#0f082f',
    950: '#000000',
  },
}
SCSS
$custom: #0f082f;
$custom-light: #504a68;
$custom-dark: #000000;
JSON
{
  "hex": "#0f082f",
  "rgb": {
    "r": 15,
    "g": 8,
    "b": 47
  },
  "hsl": {
    "h": 250.769,
    "s": 70.909,
    "l": 10.784
  },
  "oklch": {
    "l": 0.17616,
    "c": 0.07377,
    "h": 284.2
  },
  "luminance": 0.0048
}

Semantic roles & 50–950 ramp

primary
#0F082F
secondary
#616E25
accent
#EE3ACD
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0F082F

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

Preview Lab → · Contrast checker → · Palette generator →

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