#0F0232#0F0232

#0F0232 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.6% C 0.089 H 286.2°. Best body text is #FFFFFF at 19.53:1 contrast (WCAG AA passes).

Color values

HEX#0F0232
RGBrgb(15, 2, 50)
HSLhsl(256, 92%, 10%)
HSVhsv(256, 96%, 20%)
CMYKcmyk(70%, 96%, 0%, 80.4%)
CIE-LABlab(3.39, 17.93, -27.29)
CIE-LCHlch(3.39, 32.66, 303.30°)
OKLaboklab(16.65% 0.0249 -0.0854)
OKLCHoklch(16.65% 0.089 286.2)
XYZxyz(0.7943, 0.3752, 3.0476)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0232 #253202
analogous
#020D32 #0F0232 #270232
triadic
#0F0232 #320F02 #02320F
tetradic
#0F0232 #32020D #253202 #023227
square
#0F0232 #32020D #253202 #023227
split-complementary
#0F0232 #322702 #0D3202
monochromatic
#09011D #09011D #0F0232 #21046D #3207A8

Accessibility & contrast

On white

19.53
#0F0232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0232
19.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0232#FFFFFF#000000##FFFFFF
##0F02321.0019.531.0819.53
#FFFFFF19.531.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D33
Deuteranopia (green-blind)
#000B31
Tritanopia (blue-blind)
#010F1A
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0f0232;
/* rgb */ color: rgb(15, 2, 50);
/* oklch */ color: oklch(16.6% 0.089 286.2);
Tailwind
colors: {
  custom: {
    50: '#51476a',
    500: '#0f0232',
    950: '#000000',
  },
}
SCSS
$custom: #0f0232;
$custom-light: #51476a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0232",
  "rgb": {
    "r": 15,
    "g": 2,
    "b": 50
  },
  "hsl": {
    "h": 256.25,
    "s": 92.308,
    "l": 10.196
  },
  "oklch": {
    "l": 0.16645,
    "c": 0.08894,
    "h": 286.2
  },
  "luminance": 0.00375
}

Semantic roles & 50–950 ramp

primary
#0F0232
secondary
#5D7619
accent
#FF29C5
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0F0232

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

Preview Lab → · Contrast checker → · Palette generator →

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