#0F0236#0F0236

#0F0236 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.2% C 0.094 H 284.1°. Best body text is #FFFFFF at 19.40:1 contrast (WCAG AA passes).

Color values

HEX#0F0236
RGBrgb(15, 2, 54)
HSLhsl(255, 93%, 11%)
HSVhsv(255, 96%, 21%)
CMYKcmyk(72.2%, 96.3%, 0%, 78.8%)
CIE-LABlab(3.72, 20.19, -29.73)
CIE-LCHlch(3.72, 35.94, 304.17°)
OKLaboklab(17.19% 0.0229 -0.0913)
OKLCHoklch(17.19% 0.094 284.1)
XYZxyz(0.8844, 0.4113, 3.5221)
Luminance0.0041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0236 #293602
analogous
#020F36 #0F0236 #290236
triadic
#0F0236 #360F02 #02360F
tetradic
#0F0236 #36020F #293602 #023629
square
#0F0236 #36020F #293602 #023629
split-complementary
#0F0236 #362902 #0F3602
monochromatic
#08011E #08011E #0F0236 #1F0471 #3006AC

Accessibility & contrast

On white

19.40
#0F0236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0236
19.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0236#FFFFFF#000000##FFFFFF
##0F02361.0019.401.0819.40
#FFFFFF19.401.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F37
Deuteranopia (green-blind)
#000B35
Tritanopia (blue-blind)
#00111C
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0f0236;
/* rgb */ color: rgb(15, 2, 54);
/* oklch */ color: oklch(17.2% 0.094 284.1);
Tailwind
colors: {
  custom: {
    50: '#52466e',
    500: '#0f0236',
    950: '#000000',
  },
}
SCSS
$custom: #0f0236;
$custom-light: #52466e;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0236",
  "rgb": {
    "r": 15,
    "g": 2,
    "b": 54
  },
  "hsl": {
    "h": 255,
    "s": 92.857,
    "l": 10.98
  },
  "oklch": {
    "l": 0.17189,
    "c": 0.09414,
    "h": 284.1
  },
  "luminance": 0.00411
}

Semantic roles & 50–950 ramp

primary
#0F0236
secondary
#627A1A
accent
#FF29C9
background
#F4F3F6
surface
#E7E5EC
border
#C3C1C7
text
#030007
muted
#78777A

Preview Lab

Preview with #0F0236

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

Preview Lab → · Contrast checker → · Palette generator →

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