#0C0338#0C0338

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

Color values

HEX#0C0338
RGBrgb(12, 3, 56)
HSLhsl(250, 90%, 12%)
HSVhsv(250, 95%, 22%)
CMYKcmyk(78.6%, 94.6%, 0%, 78%)
CIE-LABlab(3.87, 20.04, -30.96)
CIE-LCHlch(3.87, 36.88, 302.91°)
OKLaboklab(17.36% 0.0152 -0.0945)
OKLCHoklch(17.36% 0.096 279.1)
XYZxyz(0.8978, 0.4287, 3.7761)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0338 #2F3803
analogous
#031538 #0C0338 #270338
triadic
#0C0338 #380C03 #03380C
tetradic
#0C0338 #380315 #2F3803 #033827
square
#0C0338 #380315 #2F3803 #033827
split-complementary
#0C0338 #382703 #153803
monochromatic
#06021D #06021D #0C0338 #180672 #2509AC

Accessibility & contrast

On white

19.34
#0C0338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0338
19.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0338#FFFFFF#000000##FFFFFF
##0C03381.0019.341.0919.34
#FFFFFF19.341.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.341.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: #0c0338;
/* rgb */ color: rgb(12, 3, 56);
/* oklch */ color: oklch(17.4% 0.096 279.1);
Tailwind
colors: {
  custom: {
    50: '#51476f',
    500: '#0c0338',
    950: '#000000',
  },
}
SCSS
$custom: #0c0338;
$custom-light: #51476f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0338",
  "rgb": {
    "r": 12,
    "g": 3,
    "b": 56
  },
  "hsl": {
    "h": 250.189,
    "s": 89.831,
    "l": 11.569
  },
  "oklch": {
    "l": 0.17363,
    "c": 0.09571,
    "h": 279.1
  },
  "luminance": 0.00429
}

Semantic roles & 50–950 ramp

primary
#0C0338
secondary
#6B7B1C
accent
#FF29DB
background
#F4F3F6
surface
#E7E5EC
border
#C3C1C7
text
#020007
muted
#78777A

Preview Lab

Preview with #0C0338

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

Preview Lab → · Contrast checker → · Palette generator →

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