#12146A#12146A

#12146A is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.9% C 0.143 H 270.7°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#12146A
RGBrgb(18, 20, 106)
HSLhsl(239, 71%, 24%)
HSVhsv(239, 83%, 42%)
CMYKcmyk(83%, 81.1%, 0%, 58.4%)
CIE-LABlab(13.65, 31.97, -49.33)
CIE-LCHlch(13.65, 58.78, 302.95°)
OKLaboklab(26.92% 0.0017 -0.1428)
OKLCHoklch(26.92% 0.143 270.7)
XYZxyz(3.1002, 1.6692, 13.7917)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12146A #6A6812
analogous
#12406A #12146A #3C126A
triadic
#12146A #6A1214 #146A12
tetradic
#12146A #6A1240 #6A6812 #126A3C
square
#12146A #6A1240 #6A6812 #126A3C
split-complementary
#12146A #6A3C12 #406A12
monochromatic
#04051A #090A36 #12146A #1B1E9E #2428D3

Accessibility & contrast

On white

15.74
#12146A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#12146A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12146A
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12146A#FFFFFF#000000##FFFFFF
##12146A1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276C
Deuteranopia (green-blind)
#001E69
Tritanopia (blue-blind)
#002E3E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #12146a;
/* rgb */ color: rgb(18, 20, 106);
/* oklch */ color: oklch(26.9% 0.143 270.7);
Tailwind
colors: {
  custom: {
    50: '#625396',
    500: '#12146a',
    950: '#000000',
  },
}
SCSS
$custom: #12146a;
$custom-light: #625396;
$custom-dark: #000000;
JSON
{
  "hex": "#12146a",
  "rgb": {
    "r": 18,
    "g": 20,
    "b": 106
  },
  "hsl": {
    "h": 238.636,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.26922,
    "c": 0.14286,
    "h": 270.7
  },
  "luminance": 0.0167
}

Semantic roles & 50–950 ramp

primary
#12146A
secondary
#A29F36
accent
#EA3AEE
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#06020D
muted
#7A787E

Preview Lab

Preview with #12146A

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

Preview Lab → · Contrast checker → · Palette generator →

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