#12043F#12043F

#12043F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.1% C 0.102 H 282.7°. Best body text is #FFFFFF at 18.84:1 contrast (WCAG AA passes).

Color values

HEX#12043F
RGBrgb(18, 4, 63)
HSLhsl(254, 88%, 13%)
HSVhsv(254, 94%, 25%)
CMYKcmyk(71.4%, 93.7%, 0%, 75.3%)
CIE-LABlab(5.19, 24.77, -33.88)
CIE-LCHlch(5.19, 41.97, 306.18°)
OKLaboklab(19.13% 0.0225 -0.0998)
OKLCHoklch(19.13% 0.102 282.7)
XYZxyz(1.1898, 0.5742, 4.7498)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12043F #313F04
analogous
#04133F #12043F #2F043F
triadic
#12043F #3F1204 #043F12
tetradic
#12043F #3F0413 #313F04 #043F2F
square
#12043F #3F0413 #313F04 #043F2F
split-complementary
#12043F #3F2F04 #133F04
monochromatic
#08021D #08021D #12043F #220879 #330BB2

Accessibility & contrast

On white

18.84
#12043F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#12043F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12043F
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12043F#FFFFFF#000000##FFFFFF
##12043F1.0018.841.1118.84
#FFFFFF18.841.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001341
Deuteranopia (green-blind)
#000F3E
Tritanopia (blue-blind)
#001622
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #12043f;
/* rgb */ color: rgb(18, 4, 63);
/* oklch */ color: oklch(19.1% 0.102 282.7);
Tailwind
colors: {
  custom: {
    50: '#574775',
    500: '#12043f',
    950: '#000000',
  },
}
SCSS
$custom: #12043f;
$custom-light: #574775;
$custom-dark: #000000;
JSON
{
  "hex": "#12043f",
  "rgb": {
    "r": 18,
    "g": 4,
    "b": 63
  },
  "hsl": {
    "h": 254.237,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.19128,
    "c": 0.10226,
    "h": 282.7
  },
  "luminance": 0.00574
}

Semantic roles & 50–950 ramp

primary
#12043F
secondary
#69801E
accent
#FE2ACC
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #12043F

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

Preview Lab → · Contrast checker → · Palette generator →

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