#12002C#12002C

#12002C is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.8% C 0.086 H 296.0°. Best body text is #FFFFFF at 19.77:1 contrast (WCAG AA passes).

Color values

HEX#12002C
RGBrgb(18, 0, 44)
HSLhsl(265, 100%, 9%)
HSVhsv(265, 100%, 17%)
CMYKcmyk(59.1%, 100%, 0%, 82.7%)
CIE-LABlab(2.80, 16.75, -23.70)
CIE-LCHlch(2.80, 29.02, 305.26°)
OKLaboklab(15.76% 0.0378 -0.0773)
OKLCHoklch(15.76% 0.086 296)
XYZxyz(0.7040, 0.3104, 2.4052)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12002C #1A2C00
analogous
#00042C #12002C #28002C
triadic
#12002C #2C1200 #002C12
tetradic
#12002C #2C0004 #1A2C00 #002C28
square
#12002C #2C0004 #1A2C00 #002C28
split-complementary
#12002C #2C2800 #042C00
monochromatic
#0D001F #0D001F #12002C #2B0069 #4400A6

Accessibility & contrast

On white

19.77
#12002C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#12002C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12002C
19.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12002C#FFFFFF#000000##FFFFFF
##12002C1.0019.771.0619.77
#FFFFFF19.771.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000B2D
Deuteranopia (green-blind)
#000A2B
Tritanopia (blue-blind)
#0A0B15
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #12002c;
/* rgb */ color: rgb(18, 0, 44);
/* oklch */ color: oklch(15.8% 0.086 296.0);
Tailwind
colors: {
  custom: {
    50: '#514665',
    500: '#12002c',
    950: '#000000',
  },
}
SCSS
$custom: #12002c;
$custom-light: #514665;
$custom-dark: #000000;
JSON
{
  "hex": "#12002c",
  "rgb": {
    "r": 18,
    "g": 0,
    "b": 44
  },
  "hsl": {
    "h": 264.545,
    "s": 100,
    "l": 8.627
  },
  "oklch": {
    "l": 0.15762,
    "c": 0.08603,
    "h": 296
  },
  "luminance": 0.0031
}

Semantic roles & 50–950 ramp

primary
#12002C
secondary
#4D7314
accent
#FF29A7
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020005
muted
#78777A

Preview Lab

Preview with #12002C

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

Preview Lab → · Contrast checker → · Palette generator →

#12002C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva