#0F062F#0F062F

#0F062F is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.2% C 0.077 H 285.5°. Best body text is #FFFFFF at 19.31:1 contrast (WCAG AA passes).

Color values

HEX#0F062F
RGBrgb(15, 6, 47)
HSLhsl(253, 77%, 10%)
HSVhsv(253, 87%, 18%)
CMYKcmyk(68.1%, 87.2%, 0%, 81.6%)
CIE-LABlab(3.95, 14.74, -24.16)
CIE-LCHlch(3.95, 28.30, 301.38°)
OKLaboklab(17.18% 0.0207 -0.0744)
OKLCHoklch(17.18% 0.077 285.5)
XYZxyz(0.7751, 0.4370, 2.7323)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F062F #262F06
analogous
#06112F #0F062F #23062F
triadic
#0F062F #2F0F06 #062F0F
tetradic
#0F062F #2F0611 #262F06 #062F23
square
#0F062F #2F0611 #262F06 #062F23
split-complementary
#0F062F #2F2306 #112F06
monochromatic
#09031B #09031B #0F062F #200D65 #32149C

Accessibility & contrast

On white

19.31
#0F062F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F062F
19.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F062F#FFFFFF#000000##FFFFFF
##0F062F1.0019.311.0919.31
#FFFFFF19.311.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#000D2E
Tritanopia (blue-blind)
#031119
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0f062f;
/* rgb */ color: rgb(15, 6, 47);
/* oklch */ color: oklch(17.2% 0.077 285.5);
Tailwind
colors: {
  custom: {
    50: '#504968',
    500: '#0f062f',
    950: '#000000',
  },
}
SCSS
$custom: #0f062f;
$custom-light: #504968;
$custom-dark: #000000;
JSON
{
  "hex": "#0f062f",
  "rgb": {
    "r": 15,
    "g": 6,
    "b": 47
  },
  "hsl": {
    "h": 253.171,
    "s": 77.358,
    "l": 10.392
  },
  "oklch": {
    "l": 0.17183,
    "c": 0.07724,
    "h": 285.5
  },
  "luminance": 0.00437
}

Semantic roles & 50–950 ramp

primary
#0F062F
secondary
#5E7021
accent
#F434CA
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0F062F

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

Preview Lab → · Contrast checker → · Palette generator →

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