#0D023B#0D023B

#0D023B is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.7% C 0.101 H 279.4°. Best body text is #FFFFFF at 19.28:1 contrast (WCAG AA passes).

Color values

HEX#0D023B
RGBrgb(13, 2, 59)
HSLhsl(252, 93%, 12%)
HSVhsv(252, 97%, 23%)
CMYKcmyk(78%, 96.6%, 0%, 76.9%)
CIE-LABlab(4.02, 22.43, -32.91)
CIE-LCHlch(4.02, 39.83, 304.28°)
OKLaboklab(17.67% 0.0166 -0.0996)
OKLCHoklch(17.67% 0.101 279.4)
XYZxyz(0.9769, 0.4447, 4.1712)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D023B #303B02
analogous
#02143B #0D023B #2A023B
triadic
#0D023B #3B0D02 #023B0D
tetradic
#0D023B #3B0214 #303B02 #023B2A
square
#0D023B #3B0214 #303B02 #023B2A
split-complementary
#0D023B #3B2A02 #143B02
monochromatic
#07011E #07011E #0D023B #1A0476 #2706B1

Accessibility & contrast

On white

19.28
#0D023B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D023B
19.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D023B#FFFFFF#000000##FFFFFF
##0D023B1.0019.281.0919.28
#FFFFFF19.281.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00103D
Deuteranopia (green-blind)
#000C3A
Tritanopia (blue-blind)
#00131F
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0d023b;
/* rgb */ color: rgb(13, 2, 59);
/* oklch */ color: oklch(17.7% 0.101 279.4);
Tailwind
colors: {
  custom: {
    50: '#534672',
    500: '#0d023b',
    950: '#000000',
  },
}
SCSS
$custom: #0d023b;
$custom-light: #534672;
$custom-dark: #000000;
JSON
{
  "hex": "#0d023b",
  "rgb": {
    "r": 13,
    "g": 2,
    "b": 59
  },
  "hsl": {
    "h": 251.579,
    "s": 93.443,
    "l": 11.961
  },
  "oklch": {
    "l": 0.17672,
    "c": 0.10102,
    "h": 279.4
  },
  "luminance": 0.00445
}

Semantic roles & 50–950 ramp

primary
#0D023B
secondary
#6B7E1A
accent
#FF29D6
background
#F5F3F6
surface
#E9E5EC
border
#C5C1C7
text
#030008
muted
#78777B

Preview Lab

Preview with #0D023B

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

Preview Lab → · Contrast checker → · Palette generator →

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