#0C0337#0C0337

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

Color values

HEX#0C0337
RGBrgb(12, 3, 55)
HSLhsl(250, 90%, 11%)
HSVhsv(250, 95%, 22%)
CMYKcmyk(78.2%, 94.5%, 0%, 78.4%)
CIE-LABlab(3.78, 19.46, -30.37)
CIE-LCHlch(3.78, 36.07, 302.65°)
OKLaboklab(17.22% 0.0156 -0.0931)
OKLCHoklch(17.22% 0.094 279.5)
XYZxyz(0.8736, 0.4190, 3.6485)
Luminance0.0042 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0337 #2E3703
analogous
#031437 #0C0337 #260337
triadic
#0C0337 #370C03 #03370C
tetradic
#0C0337 #370314 #2E3703 #033726
square
#0C0337 #370314 #2E3703 #033726
split-complementary
#0C0337 #372603 #143703
monochromatic
#06021D #06021D #0C0337 #190671 #2509AB

Accessibility & contrast

On white

19.38
#0C0337 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0337
19.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0337#FFFFFF#000000##FFFFFF
##0C03371.0019.381.0819.38
#FFFFFF19.381.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F38
Deuteranopia (green-blind)
#000B36
Tritanopia (blue-blind)
#00121D
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #0c0337;
/* rgb */ color: rgb(12, 3, 55);
/* oklch */ color: oklch(17.2% 0.094 279.5);
Tailwind
colors: {
  custom: {
    50: '#51476e',
    500: '#0c0337',
    950: '#000000',
  },
}
SCSS
$custom: #0c0337;
$custom-light: #51476e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0337",
  "rgb": {
    "r": 12,
    "g": 3,
    "b": 55
  },
  "hsl": {
    "h": 250.385,
    "s": 89.655,
    "l": 11.373
  },
  "oklch": {
    "l": 0.17224,
    "c": 0.09436,
    "h": 279.5
  },
  "luminance": 0.00419
}

Semantic roles & 50–950 ramp

primary
#0C0337
secondary
#6A7A1C
accent
#FF29DA
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0337

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

Preview Lab → · Contrast checker → · Palette generator →

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