#12126A#12126A

#12126A is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.6% C 0.145 H 270.9°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#12126A
RGBrgb(18, 18, 106)
HSLhsl(240, 71%, 24%)
HSVhsv(240, 83%, 42%)
CMYKcmyk(83%, 83%, 0%, 58.4%)
CIE-LABlab(13.24, 33.14, -50.00)
CIE-LCHlch(13.24, 59.99, 303.54°)
OKLaboklab(26.64% 0.0024 -0.1448)
OKLCHoklch(26.64% 0.145 270.9)
XYZxyz(3.0664, 1.6015, 13.7804)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12126A #6A6A12
analogous
#123E6A #12126A #3E126A
triadic
#12126A #6A1212 #126A12
tetradic
#12126A #6A123E #6A6A12 #126A3E
square
#12126A #6A123E #6A6A12 #126A3E
split-complementary
#12126A #6A3E12 #3E6A12
monochromatic
#04041A #090936 #12126A #1B1B9E #2424D3

Accessibility & contrast

On white

15.90
#12126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#12126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12126A
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12126A#FFFFFF#000000##FFFFFF
##12126A1.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00266C
Deuteranopia (green-blind)
#001D68
Tritanopia (blue-blind)
#002D3E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #12126a;
/* rgb */ color: rgb(18, 18, 106);
/* oklch */ color: oklch(26.6% 0.145 270.9);
Tailwind
colors: {
  custom: {
    50: '#635296',
    500: '#12126a',
    950: '#000000',
  },
}
SCSS
$custom: #12126a;
$custom-light: #635296;
$custom-dark: #000000;
JSON
{
  "hex": "#12126a",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 240,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.26636,
    "c": 0.14479,
    "h": 270.9
  },
  "luminance": 0.01602
}

Semantic roles & 50–950 ramp

primary
#12126A
secondary
#A2A236
accent
#EE3AEE
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#06020D
muted
#7A787E

Preview Lab

Preview with #12126A

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

Preview Lab → · Contrast checker → · Palette generator →

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