#12002B#12002B

#12002B is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.6% C 0.085 H 296.9°. Best body text is #FFFFFF at 19.80:1 contrast (WCAG AA passes).

Color values

HEX#12002B
RGBrgb(18, 0, 43)
HSLhsl(265, 100%, 8%)
HSVhsv(265, 100%, 17%)
CMYKcmyk(58.1%, 100%, 0%, 83.1%)
CIE-LABlab(2.74, 16.28, -23.04)
CIE-LCHlch(2.74, 28.21, 305.24°)
OKLaboklab(15.63% 0.0384 -0.0757)
OKLCHoklch(15.63% 0.085 296.9)
XYZxyz(0.6854, 0.3030, 2.3074)
Luminance0.0030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12002B #192B00
analogous
#00042B #12002B #27002B
triadic
#12002B #2B1200 #002B12
tetradic
#12002B #2B0004 #192B00 #002B27
square
#12002B #2B0004 #192B00 #002B27
split-complementary
#12002B #2B2700 #042B00
monochromatic
#0D001F #0D001F #12002B #2C0068 #4500A5

Accessibility & contrast

On white

19.80
#12002B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12002B
19.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12002B#FFFFFF#000000##FFFFFF
##12002B1.0019.801.0619.80
#FFFFFF19.801.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000A2C
Deuteranopia (green-blind)
#00092A
Tritanopia (blue-blind)
#0B0A15
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #12002b;
/* rgb */ color: rgb(18, 0, 43);
/* oklch */ color: oklch(15.6% 0.085 296.9);
Tailwind
colors: {
  custom: {
    50: '#514664',
    500: '#12002b',
    950: '#000000',
  },
}
SCSS
$custom: #12002b;
$custom-light: #514664;
$custom-dark: #000000;
JSON
{
  "hex": "#12002b",
  "rgb": {
    "r": 18,
    "g": 0,
    "b": 43
  },
  "hsl": {
    "h": 265.116,
    "s": 100,
    "l": 8.431
  },
  "oklch": {
    "l": 0.1563,
    "c": 0.08491,
    "h": 296.9
  },
  "luminance": 0.00303
}

Semantic roles & 50–950 ramp

primary
#12002B
secondary
#4B7314
accent
#FF29A5
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020005
muted
#78777A

Preview Lab

Preview with #12002B

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

Preview Lab → · Contrast checker → · Palette generator →

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