#0F0239#0F0239

#0F0239 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.6% C 0.098 H 282.6°. Best body text is #FFFFFF at 19.30:1 contrast (WCAG AA passes).

Color values

HEX#0F0239
RGBrgb(15, 2, 57)
HSLhsl(254, 93%, 12%)
HSVhsv(254, 96%, 22%)
CMYKcmyk(73.7%, 96.5%, 0%, 77.6%)
CIE-LABlab(3.98, 21.86, -31.51)
CIE-LCHlch(3.98, 38.35, 304.75°)
OKLaboklab(17.6% 0.0214 -0.0956)
OKLCHoklch(17.6% 0.098 282.6)
XYZxyz(0.9570, 0.4403, 3.9047)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0239 #2C3902
analogous
#021139 #0F0239 #2B0239
triadic
#0F0239 #390F02 #02390F
tetradic
#0F0239 #390211 #2C3902 #02392B
square
#0F0239 #390211 #2C3902 #02392B
split-complementary
#0F0239 #392B02 #113902
monochromatic
#08011E #08011E #0F0239 #1F0474 #2E06AF

Accessibility & contrast

On white

19.30
#0F0239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0239
19.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0239#FFFFFF#000000##FFFFFF
##0F02391.0019.301.0919.30
#FFFFFF19.301.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00103A
Deuteranopia (green-blind)
#000C38
Tritanopia (blue-blind)
#00121E
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0f0239;
/* rgb */ color: rgb(15, 2, 57);
/* oklch */ color: oklch(17.6% 0.098 282.6);
Tailwind
colors: {
  custom: {
    50: '#534670',
    500: '#0f0239',
    950: '#000000',
  },
}
SCSS
$custom: #0f0239;
$custom-light: #534670;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0239",
  "rgb": {
    "r": 15,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 254.182,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.17602,
    "c": 0.09801,
    "h": 282.6
  },
  "luminance": 0.0044
}

Semantic roles & 50–950 ramp

primary
#0F0239
secondary
#657D1A
accent
#FF29CC
background
#F5F3F6
surface
#E9E5EC
border
#C5C1C7
text
#030007
muted
#78777A

Preview Lab

Preview with #0F0239

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

Preview Lab → · Contrast checker → · Palette generator →

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