#12146F#12146F

#12146F is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.5% C 0.149 H 270.2°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#12146F
RGBrgb(18, 20, 111)
HSLhsl(239, 72%, 25%)
HSVhsv(239, 84%, 44%)
CMYKcmyk(83.8%, 82%, 0%, 56.5%)
CIE-LABlab(14.27, 33.77, -51.57)
CIE-LCHlch(14.27, 61.64, 303.22°)
OKLaboklab(27.54% 0.0007 -0.1493)
OKLCHoklch(27.54% 0.149 270.2)
XYZxyz(3.3679, 1.7762, 15.2012)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12146F #6F6D12
analogous
#12426F #12146F #3F126F
triadic
#12146F #6F1214 #146F12
tetradic
#12146F #6F1242 #6F6D12 #126F3F
square
#12146F #6F1242 #6F6D12 #126F3F
split-complementary
#12146F #6F3F12 #426F12
monochromatic
#04051A #090B3A #12146F #1B1DA4 #2327D8

Accessibility & contrast

On white

15.49
#12146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#12146F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12146F
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12146F#FFFFFF#000000##FFFFFF
##12146F1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002972
Deuteranopia (green-blind)
#001F6D
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #12146f;
/* rgb */ color: rgb(18, 20, 111);
/* oklch */ color: oklch(27.5% 0.149 270.2);
Tailwind
colors: {
  custom: {
    50: '#645399',
    500: '#12146f',
    950: '#000000',
  },
}
SCSS
$custom: #12146f;
$custom-light: #645399;
$custom-dark: #000000;
JSON
{
  "hex": "#12146f",
  "rgb": {
    "r": 18,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 238.71,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.27539,
    "c": 0.14935,
    "h": 270.2
  },
  "luminance": 0.01777
}

Semantic roles & 50–950 ramp

primary
#12146F
secondary
#A6A437
accent
#EB39EF
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#06020E
muted
#7A787E

Preview Lab

Preview with #12146F

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

Preview Lab → · Contrast checker → · Palette generator →

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