#0F052B#0F052B

#0F052B is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.5% C 0.073 H 288.6°. Best body text is #FFFFFF at 19.50:1 contrast (WCAG AA passes).

Color values

HEX#0F052B
RGBrgb(15, 5, 43)
HSLhsl(256, 79%, 9%)
HSVhsv(256, 88%, 17%)
CMYKcmyk(65.1%, 88.4%, 0%, 83.1%)
CIE-LABlab(3.47, 13.18, -21.90)
CIE-LCHlch(3.47, 25.56, 301.05°)
OKLaboklab(16.48% 0.0233 -0.0694)
OKLCHoklch(16.48% 0.073 288.6)
XYZxyz(0.6872, 0.3845, 2.3230)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F052B #212B05
analogous
#050E2B #0F052B #22052B
triadic
#0F052B #2B0F05 #052B0F
tetradic
#0F052B #2B050E #212B05 #052B22
square
#0F052B #2B050E #212B05 #052B22
split-complementary
#0F052B #2B2205 #0E2B05
monochromatic
#0A031B #0A031B #0F052B #220B62 #351299

Accessibility & contrast

On white

19.50
#0F052B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F052B
19.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F052B#FFFFFF#000000##FFFFFF
##0F052B1.0019.501.0819.50
#FFFFFF19.501.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2C
Deuteranopia (green-blind)
#000B2A
Tritanopia (blue-blind)
#050F17
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0f052b;
/* rgb */ color: rgb(15, 5, 43);
/* oklch */ color: oklch(16.5% 0.073 288.6);
Tailwind
colors: {
  custom: {
    50: '#4f4864',
    500: '#0f052b',
    950: '#000000',
  },
}
SCSS
$custom: #0f052b;
$custom-light: #4f4864;
$custom-dark: #000000;
JSON
{
  "hex": "#0f052b",
  "rgb": {
    "r": 15,
    "g": 5,
    "b": 43
  },
  "hsl": {
    "h": 255.789,
    "s": 79.167,
    "l": 9.412
  },
  "oklch": {
    "l": 0.16482,
    "c": 0.07319,
    "h": 288.6
  },
  "luminance": 0.00385
}

Semantic roles & 50–950 ramp

primary
#0F052B
secondary
#586D1F
accent
#F632C2
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020005
muted
#78777A

Preview Lab

Preview with #0F052B

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

Preview Lab → · Contrast checker → · Palette generator →

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