#0F082C#0F082C

#0F082C is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.3% C 0.069 H 285.7°. Best body text is #FFFFFF at 19.24:1 contrast (WCAG AA passes).

Color values

HEX#0F082C
RGBrgb(15, 8, 44)
HSLhsl(252, 69%, 10%)
HSVhsv(252, 82%, 17%)
CMYKcmyk(65.9%, 81.8%, 0%, 82.7%)
CIE-LABlab(4.13, 12.45, -21.62)
CIE-LCHlch(4.13, 24.95, 299.94°)
OKLaboklab(17.29% 0.0187 -0.0664)
OKLCHoklch(17.29% 0.069 285.7)
XYZxyz(0.7383, 0.4570, 2.4317)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F082C #252C08
analogous
#08132C #0F082C #21082C
triadic
#0F082C #2C0F08 #082C0F
tetradic
#0F082C #2C0813 #252C08 #082C21
square
#0F082C #2C0813 #252C08 #082C21
split-complementary
#0F082C #2C2108 #132C08
monochromatic
#09051A #09051A #0F082C #211160 #321B94

Accessibility & contrast

On white

19.24
#0F082C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#0F082C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F082C
19.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F082C#FFFFFF#000000##FFFFFF
##0F082C1.0019.241.0919.24
#FFFFFF19.241.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2D
Deuteranopia (green-blind)
#000D2B
Tritanopia (blue-blind)
#041118
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0f082c;
/* rgb */ color: rgb(15, 8, 44);
/* oklch */ color: oklch(17.3% 0.069 285.7);
Tailwind
colors: {
  custom: {
    50: '#4f4a65',
    500: '#0f082c',
    950: '#000000',
  },
}
SCSS
$custom: #0f082c;
$custom-light: #4f4a65;
$custom-dark: #000000;
JSON
{
  "hex": "#0f082c",
  "rgb": {
    "r": 15,
    "g": 8,
    "b": 44
  },
  "hsl": {
    "h": 251.667,
    "s": 69.231,
    "l": 10.196
  },
  "oklch": {
    "l": 0.17285,
    "c": 0.06903,
    "h": 285.7
  },
  "luminance": 0.00457
}

Semantic roles & 50–950 ramp

primary
#0F082C
secondary
#5D6B25
accent
#EC3CCA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020105
muted
#78777A

Preview Lab

Preview with #0F082C

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

Preview Lab → · Contrast checker → · Palette generator →

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