#0F022F#0F022F

#0F022F is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.2% C 0.085 H 288.1°. Best body text is #FFFFFF at 19.63:1 contrast (WCAG AA passes).

Color values

HEX#0F022F
RGBrgb(15, 2, 47)
HSLhsl(257, 92%, 10%)
HSVhsv(257, 96%, 18%)
CMYKcmyk(68.1%, 95.7%, 0%, 81.6%)
CIE-LABlab(3.16, 16.33, -25.41)
CIE-LCHlch(3.16, 30.21, 302.73°)
OKLaboklab(16.25% 0.0264 -0.0808)
OKLCHoklch(16.25% 0.085 288.1)
XYZxyz(0.7316, 0.3502, 2.7178)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F022F #222F02
analogous
#020C2F #0F022F #26022F
triadic
#0F022F #2F0F02 #022F0F
tetradic
#0F022F #2F020C #222F02 #022F26
square
#0F022F #2F020C #222F02 #022F26
split-complementary
#0F022F #2F2602 #0C2F02
monochromatic
#09011D #09011D #0F022F #22046A #3407A4

Accessibility & contrast

On white

19.63
#0F022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#0F022F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F022F
19.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F022F#FFFFFF#000000##FFFFFF
##0F022F1.0019.631.0719.63
#FFFFFF19.631.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C30
Deuteranopia (green-blind)
#000A2E
Tritanopia (blue-blind)
#030E18
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #0f022f;
/* rgb */ color: rgb(15, 2, 47);
/* oklch */ color: oklch(16.2% 0.085 288.1);
Tailwind
colors: {
  custom: {
    50: '#504768',
    500: '#0f022f',
    950: '#000000',
  },
}
SCSS
$custom: #0f022f;
$custom-light: #504768;
$custom-dark: #000000;
JSON
{
  "hex": "#0f022f",
  "rgb": {
    "r": 15,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 257.333,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.16245,
    "c": 0.08502,
    "h": 288.1
  },
  "luminance": 0.0035
}

Semantic roles & 50–950 ramp

primary
#0F022F
secondary
#5A7419
accent
#FF29C1
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0F022F

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

Preview Lab → · Contrast checker → · Palette generator →

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