#0D0239#0D0239

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

Color values

HEX#0D0239
RGBrgb(13, 2, 57)
HSLhsl(252, 93%, 12%)
HSVhsv(252, 96%, 22%)
CMYKcmyk(77.2%, 96.5%, 0%, 77.6%)
CIE-LABlab(3.83, 21.30, -31.75)
CIE-LCHlch(3.83, 38.24, 303.86°)
OKLaboklab(17.39% 0.0175 -0.0968)
OKLCHoklch(17.39% 0.098 280.2)
XYZxyz(0.9260, 0.4243, 3.9032)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D0239 #2E3902
analogous
#021339 #0D0239 #290239
triadic
#0D0239 #390D02 #02390D
tetradic
#0D0239 #390213 #2E3902 #023929
square
#0D0239 #390213 #2E3902 #023929
split-complementary
#0D0239 #392902 #133902
monochromatic
#07011E #07011E #0D0239 #1A0474 #2806AF

Accessibility & contrast

On white

19.36
#0D0239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D0239
19.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D0239#FFFFFF#000000##FFFFFF
##0D02391.0019.361.0819.36
#FFFFFF19.361.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0d0239;
/* rgb */ color: rgb(13, 2, 57);
/* oklch */ color: oklch(17.4% 0.098 280.2);
Tailwind
colors: {
  custom: {
    50: '#524670',
    500: '#0d0239',
    950: '#000000',
  },
}
SCSS
$custom: #0d0239;
$custom-light: #524670;
$custom-dark: #000000;
JSON
{
  "hex": "#0d0239",
  "rgb": {
    "r": 13,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 252,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.17388,
    "c": 0.09842,
    "h": 280.2
  },
  "luminance": 0.00424
}

Semantic roles & 50–950 ramp

primary
#0D0239
secondary
#697D1A
accent
#FF29D4
background
#F4F3F6
surface
#E8E5EC
border
#C4C1C7
text
#030007
muted
#78777A

Preview Lab

Preview with #0D0239

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

Preview Lab → · Contrast checker → · Palette generator →

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