#0F062E#0F062E

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

Color values

HEX#0F062E
RGBrgb(15, 6, 46)
HSLhsl(254, 77%, 10%)
HSVhsv(254, 87%, 18%)
CMYKcmyk(67.4%, 87%, 0%, 82%)
CIE-LABlab(3.88, 14.23, -23.53)
CIE-LCHlch(3.88, 27.49, 301.17°)
OKLaboklab(17.07% 0.021 -0.0728)
OKLCHoklch(17.07% 0.076 286.1)
XYZxyz(0.7551, 0.4290, 2.6273)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F062E #252E06
analogous
#06112E #0F062E #23062E
triadic
#0F062E #2E0F06 #062E0F
tetradic
#0F062E #2E0611 #252E06 #062E23
square
#0F062E #2E0611 #252E06 #062E23
split-complementary
#0F062E #2E2306 #112E06
monochromatic
#09041B #09041B #0F062E #210D64 #32149A

Accessibility & contrast

On white

19.34
#0F062E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F062E
19.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F062E#FFFFFF#000000##FFFFFF
##0F062E1.0019.341.0919.34
#FFFFFF19.341.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2F
Deuteranopia (green-blind)
#000D2D
Tritanopia (blue-blind)
#031019
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0f062e;
/* rgb */ color: rgb(15, 6, 46);
/* oklch */ color: oklch(17.1% 0.076 286.1);
Tailwind
colors: {
  custom: {
    50: '#504967',
    500: '#0f062e',
    950: '#000000',
  },
}
SCSS
$custom: #0f062e;
$custom-light: #504967;
$custom-dark: #000000;
JSON
{
  "hex": "#0f062e",
  "rgb": {
    "r": 15,
    "g": 6,
    "b": 46
  },
  "hsl": {
    "h": 253.5,
    "s": 76.923,
    "l": 10.196
  },
  "oklch": {
    "l": 0.17066,
    "c": 0.07574,
    "h": 286.1
  },
  "luminance": 0.00429
}

Semantic roles & 50–950 ramp

primary
#0F062E
secondary
#5D6F21
accent
#F334C8
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0F062E

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

Preview Lab → · Contrast checker → · Palette generator →

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