#0F0338#0F0338

#0F0338 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.7% C 0.095 H 282.7°. Best body text is #FFFFFF at 19.26:1 contrast (WCAG AA passes).

Color values

HEX#0F0338
RGBrgb(15, 3, 56)
HSLhsl(254, 90%, 12%)
HSVhsv(254, 95%, 22%)
CMYKcmyk(73.2%, 94.6%, 0%, 78%)
CIE-LABlab(4.08, 20.88, -30.61)
CIE-LCHlch(4.08, 37.05, 304.30°)
OKLaboklab(17.68% 0.0208 -0.0928)
OKLCHoklch(17.68% 0.095 282.7)
XYZxyz(0.9432, 0.4521, 3.7782)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0338 #2C3803
analogous
#031238 #0F0338 #2A0338
triadic
#0F0338 #380F03 #03380F
tetradic
#0F0338 #380312 #2C3803 #03382A
square
#0F0338 #380312 #2C3803 #03382A
split-complementary
#0F0338 #382A03 #123803
monochromatic
#08021D #08021D #0F0338 #1F0672 #2E09AC

Accessibility & contrast

On white

19.26
#0F0338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0338
19.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0338#FFFFFF#000000##FFFFFF
##0F03381.0019.261.0919.26
#FFFFFF19.261.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001039
Deuteranopia (green-blind)
#000C37
Tritanopia (blue-blind)
#00131E
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0f0338;
/* rgb */ color: rgb(15, 3, 56);
/* oklch */ color: oklch(17.7% 0.095 282.7);
Tailwind
colors: {
  custom: {
    50: '#53476f',
    500: '#0f0338',
    950: '#000000',
  },
}
SCSS
$custom: #0f0338;
$custom-light: #53476f;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0338",
  "rgb": {
    "r": 15,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 253.585,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.17676,
    "c": 0.09507,
    "h": 282.7
  },
  "luminance": 0.00452
}

Semantic roles & 50–950 ramp

primary
#0F0338
secondary
#657B1C
accent
#FF29CF
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#030007
muted
#78777A

Preview Lab

Preview with #0F0338

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

Preview Lab → · Contrast checker → · Palette generator →

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