#0F062C#0F062C

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

Color values

HEX#0F062C
RGBrgb(15, 6, 44)
HSLhsl(254, 76%, 10%)
HSVhsv(254, 86%, 17%)
CMYKcmyk(65.9%, 86.4%, 0%, 82.7%)
CIE-LABlab(3.74, 13.25, -22.24)
CIE-LCHlch(3.74, 25.89, 300.79°)
OKLaboklab(16.83% 0.0215 -0.0695)
OKLCHoklch(16.83% 0.073 287.2)
XYZxyz(0.7166, 0.4136, 2.4245)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F062C #232C06
analogous
#06102C #0F062C #22062C
triadic
#0F062C #2C0F06 #062C0F
tetradic
#0F062C #2C0610 #232C06 #062C22
square
#0F062C #2C0610 #232C06 #062C22
split-complementary
#0F062C #2C2206 #102C06
monochromatic
#09041B #09041B #0F062C #210D62 #341598

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0F062C#FFFFFF#000000##FFFFFF
##0F062C1.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)
#000E2D
Deuteranopia (green-blind)
#000C2B
Tritanopia (blue-blind)
#041018
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0f062c;
/* rgb */ color: rgb(15, 6, 44);
/* oklch */ color: oklch(16.8% 0.073 287.2);
Tailwind
colors: {
  custom: {
    50: '#4f4965',
    500: '#0f062c',
    950: '#000000',
  },
}
SCSS
$custom: #0f062c;
$custom-light: #4f4965;
$custom-dark: #000000;
JSON
{
  "hex": "#0f062c",
  "rgb": {
    "r": 15,
    "g": 6,
    "b": 44
  },
  "hsl": {
    "h": 254.211,
    "s": 76,
    "l": 9.804
  },
  "oklch": {
    "l": 0.16834,
    "c": 0.07271,
    "h": 287.2
  },
  "luminance": 0.00414
}

Semantic roles & 50–950 ramp

primary
#0F062C
secondary
#5B6D21
accent
#F335C6
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020005
muted
#78777A

Preview Lab

Preview with #0F062C

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

Preview Lab → · Contrast checker → · Palette generator →

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