#12043B#12043B

#12043B is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.6% C 0.097 H 284.4°. Best body text is #FFFFFF at 18.98:1 contrast (WCAG AA passes).

Color values

HEX#12043B
RGBrgb(18, 4, 59)
HSLhsl(255, 87%, 12%)
HSVhsv(255, 93%, 23%)
CMYKcmyk(69.5%, 93.2%, 0%, 76.9%)
CIE-LABlab(4.80, 22.83, -31.62)
CIE-LCHlch(4.80, 39.01, 305.83°)
OKLaboklab(18.61% 0.0242 -0.0939)
OKLCHoklch(18.61% 0.097 284.4)
XYZxyz(1.0820, 0.5311, 4.1823)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12043B #2D3B04
analogous
#04113B #12043B #2E043B
triadic
#12043B #3B1204 #043B12
tetradic
#12043B #3B0411 #2D3B04 #043B2E
square
#12043B #3B0411 #2D3B04 #043B2E
split-complementary
#12043B #3B2E04 #113B04
monochromatic
#09021D #09021D #12043B #230874 #350CAE

Accessibility & contrast

On white

18.98
#12043B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12043B
18.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12043B#FFFFFF#000000##FFFFFF
##12043B1.0018.981.1118.98
#FFFFFF18.981.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00123D
Deuteranopia (green-blind)
#000F3A
Tritanopia (blue-blind)
#001420
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #12043b;
/* rgb */ color: rgb(18, 4, 59);
/* oklch */ color: oklch(18.6% 0.097 284.4);
Tailwind
colors: {
  custom: {
    50: '#564772',
    500: '#12043b',
    950: '#000000',
  },
}
SCSS
$custom: #12043b;
$custom-light: #564772;
$custom-dark: #000000;
JSON
{
  "hex": "#12043b",
  "rgb": {
    "r": 18,
    "g": 4,
    "b": 59
  },
  "hsl": {
    "h": 255.273,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.18606,
    "c": 0.097,
    "h": 284.4
  },
  "luminance": 0.00531
}

Semantic roles & 50–950 ramp

primary
#12043B
secondary
#657D1E
accent
#FD2AC8
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#030008
muted
#78777B

Preview Lab

Preview with #12043B

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

Preview Lab → · Contrast checker → · Palette generator →

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