#12043A#12043A

#12043A is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.5% C 0.096 H 284.9°. Best body text is #FFFFFF at 19.02:1 contrast (WCAG AA passes).

Color values

HEX#12043A
RGBrgb(18, 4, 58)
HSLhsl(256, 87%, 12%)
HSVhsv(256, 93%, 23%)
CMYKcmyk(69%, 93.1%, 0%, 77.3%)
CIE-LABlab(4.71, 22.34, -31.05)
CIE-LCHlch(4.71, 38.25, 305.73°)
OKLaboklab(18.48% 0.0246 -0.0924)
OKLCHoklch(18.48% 0.096 284.9)
XYZxyz(1.0564, 0.5209, 4.0470)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12043A #2C3A04
analogous
#04113A #12043A #2D043A
triadic
#12043A #3A1204 #043A12
tetradic
#12043A #3A0411 #2C3A04 #043A2D
square
#12043A #3A0411 #2C3A04 #043A2D
split-complementary
#12043A #3A2D04 #113A04
monochromatic
#09021D #09021D #12043A #240873 #360CAD

Accessibility & contrast

On white

19.02
#12043A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#12043A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12043A
19.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12043A#FFFFFF#000000##FFFFFF
##12043A1.0019.021.1019.02
#FFFFFF19.021.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00123B
Deuteranopia (green-blind)
#000E39
Tritanopia (blue-blind)
#00141F
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #12043a;
/* rgb */ color: rgb(18, 4, 58);
/* oklch */ color: oklch(18.5% 0.096 284.9);
Tailwind
colors: {
  custom: {
    50: '#564771',
    500: '#12043a',
    950: '#000000',
  },
}
SCSS
$custom: #12043a;
$custom-light: #564771;
$custom-dark: #000000;
JSON
{
  "hex": "#12043a",
  "rgb": {
    "r": 18,
    "g": 4,
    "b": 58
  },
  "hsl": {
    "h": 255.556,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.18477,
    "c": 0.09567,
    "h": 284.9
  },
  "luminance": 0.00521
}

Semantic roles & 50–950 ramp

primary
#12043A
secondary
#637C1E
accent
#FD2BC7
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#030008
muted
#78777B

Preview Lab

Preview with #12043A

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

Preview Lab → · Contrast checker → · Palette generator →

#12043A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva