#0F022A#0F022A

#0F022A is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.6% C 0.078 H 291.5°. Best body text is #FFFFFF at 19.77:1 contrast (WCAG AA passes).

Color values

HEX#0F022A
RGBrgb(15, 2, 42)
HSLhsl(260, 91%, 9%)
HSVhsv(260, 95%, 16%)
CMYKcmyk(64.3%, 95.2%, 0%, 83.5%)
CIE-LABlab(2.82, 13.92, -22.16)
CIE-LCHlch(2.82, 26.17, 302.13°)
OKLaboklab(15.6% 0.0288 -0.073)
OKLCHoklch(15.6% 0.078 291.5)
XYZxyz(0.6365, 0.3121, 2.2167)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F022A #1D2A02
analogous
#02092A #0F022A #23022A
triadic
#0F022A #2A0F02 #022A0F
tetradic
#0F022A #2A0209 #1D2A02 #022A23
square
#0F022A #2A0209 #1D2A02 #022A23
split-complementary
#0F022A #2A2302 #092A02
monochromatic
#0A011D #0A011D #0F022A #240564 #39089F

Accessibility & contrast

On white

19.77
#0F022A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#0F022A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F022A
19.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F022A#FFFFFF#000000##FFFFFF
##0F022A1.0019.771.0619.77
#FFFFFF19.771.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2B
Deuteranopia (green-blind)
#000929
Tritanopia (blue-blind)
#060C15
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0f022a;
/* rgb */ color: rgb(15, 2, 42);
/* oklch */ color: oklch(15.6% 0.078 291.5);
Tailwind
colors: {
  custom: {
    50: '#4e4764',
    500: '#0f022a',
    950: '#000000',
  },
}
SCSS
$custom: #0f022a;
$custom-light: #4e4764;
$custom-dark: #000000;
JSON
{
  "hex": "#0f022a",
  "rgb": {
    "r": 15,
    "g": 2,
    "b": 42
  },
  "hsl": {
    "h": 259.5,
    "s": 90.909,
    "l": 8.627
  },
  "oklch": {
    "l": 0.15595,
    "c": 0.07844,
    "h": 291.5
  },
  "luminance": 0.00312
}

Semantic roles & 50–950 ramp

primary
#0F022A
secondary
#536F19
accent
#FF29B9
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#020005
muted
#787779

Preview Lab

Preview with #0F022A

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

Preview Lab → · Contrast checker → · Palette generator →

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