#0F052F#0F052F

#0F052F is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.0% C 0.079 H 286.2°. Best body text is #FFFFFF at 19.39:1 contrast (WCAG AA passes).

Color values

HEX#0F052F
RGBrgb(15, 5, 47)
HSLhsl(254, 81%, 10%)
HSVhsv(254, 89%, 18%)
CMYKcmyk(68.1%, 89.4%, 0%, 81.6%)
CIE-LABlab(3.75, 15.13, -24.47)
CIE-LCHlch(3.75, 28.78, 301.73°)
OKLaboklab(16.96% 0.022 -0.0759)
OKLCHoklch(16.96% 0.079 286.2)
XYZxyz(0.7642, 0.4153, 2.7287)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F052F #252F05
analogous
#05102F #0F052F #24052F
triadic
#0F052F #2F0F05 #052F0F
tetradic
#0F052F #2F0510 #252F05 #052F24
square
#0F052F #2F0510 #252F05 #052F24
split-complementary
#0F052F #2F2405 #102F05
monochromatic
#09031C #09031C #0F052F #210B66 #32119E

Accessibility & contrast

On white

19.39
#0F052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F052F
19.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F052F#FFFFFF#000000##FFFFFF
##0F052F1.0019.391.0819.39
#FFFFFF19.391.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E30
Deuteranopia (green-blind)
#000C2E
Tritanopia (blue-blind)
#031019
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0f052f;
/* rgb */ color: rgb(15, 5, 47);
/* oklch */ color: oklch(17.0% 0.079 286.2);
Tailwind
colors: {
  custom: {
    50: '#504868',
    500: '#0f052f',
    950: '#000000',
  },
}
SCSS
$custom: #0f052f;
$custom-light: #504868;
$custom-dark: #000000;
JSON
{
  "hex": "#0f052f",
  "rgb": {
    "r": 15,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 254.286,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.16958,
    "c": 0.07908,
    "h": 286.2
  },
  "luminance": 0.00415
}

Semantic roles & 50–950 ramp

primary
#0F052F
secondary
#5D711F
accent
#F731C8
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0F052F

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

Preview Lab → · Contrast checker → · Palette generator →

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