#0F052D#0F052D

#0F052D is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.7% C 0.076 H 287.3°. Best body text is #FFFFFF at 19.44:1 contrast (WCAG AA passes).

Color values

HEX#0F052D
RGBrgb(15, 5, 45)
HSLhsl(255, 80%, 10%)
HSVhsv(255, 89%, 18%)
CMYKcmyk(66.7%, 88.9%, 0%, 82.4%)
CIE-LABlab(3.61, 14.14, -23.20)
CIE-LCHlch(3.61, 27.16, 301.36°)
OKLaboklab(16.72% 0.0227 -0.0727)
OKLCHoklch(16.72% 0.076 287.3)
XYZxyz(0.7248, 0.3995, 2.5210)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F052D #232D05
analogous
#050F2D #0F052D #23052D
triadic
#0F052D #2D0F05 #052D0F
tetradic
#0F052D #2D050F #232D05 #052D23
square
#0F052D #2D050F #232D05 #052D23
split-complementary
#0F052D #2D2305 #0F2D05
monochromatic
#09031C #09031C #0F052D #210B64 #34119B

Accessibility & contrast

On white

19.44
#0F052D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#0F052D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F052D
19.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F052D#FFFFFF#000000##FFFFFF
##0F052D1.0019.441.0819.44
#FFFFFF19.441.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2E
Deuteranopia (green-blind)
#000C2C
Tritanopia (blue-blind)
#040F18
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0f052d;
/* rgb */ color: rgb(15, 5, 45);
/* oklch */ color: oklch(16.7% 0.076 287.3);
Tailwind
colors: {
  custom: {
    50: '#4f4866',
    500: '#0f052d',
    950: '#000000',
  },
}
SCSS
$custom: #0f052d;
$custom-light: #4f4866;
$custom-dark: #000000;
JSON
{
  "hex": "#0f052d",
  "rgb": {
    "r": 15,
    "g": 5,
    "b": 45
  },
  "hsl": {
    "h": 255,
    "s": 80,
    "l": 9.804
  },
  "oklch": {
    "l": 0.16718,
    "c": 0.07615,
    "h": 287.3
  },
  "luminance": 0.004
}

Semantic roles & 50–950 ramp

primary
#0F052D
secondary
#5B6F1F
accent
#F631C5
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0F052D

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

Preview Lab → · Contrast checker → · Palette generator →

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