#12105C#12105C

#12105C is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.6% C 0.128 H 272.8°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#12105C
RGBrgb(18, 16, 92)
HSLhsl(242, 70%, 21%)
HSVhsv(242, 83%, 36%)
CMYKcmyk(80.4%, 82.6%, 0%, 63.9%)
CIE-LABlab(11.08, 29.29, -44.28)
CIE-LCHlch(11.08, 53.09, 303.48°)
OKLaboklab(24.61% 0.0063 -0.1281)
OKLCHoklch(24.61% 0.128 272.8)
XYZxyz(2.3659, 1.2716, 10.2439)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12105C #5A5C10
analogous
#10345C #12105C #38105C
triadic
#12105C #5C1210 #105C12
tetradic
#12105C #5C1034 #5A5C10 #105C38
square
#12105C #5C1034 #5A5C10 #105C38
split-complementary
#12105C #5C3810 #345C10
monochromatic
#05051A #080728 #12105C #1C1990 #2622C4

Accessibility & contrast

On white

16.74
#12105C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#12105C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12105C
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12105C#FFFFFF#000000##FFFFFF
##12105C1.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215E
Deuteranopia (green-blind)
#001A5B
Tritanopia (blue-blind)
#002735
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #12105c;
/* rgb */ color: rgb(18, 16, 92);
/* oklch */ color: oklch(24.6% 0.128 272.8);
Tailwind
colors: {
  custom: {
    50: '#5f4f8b',
    500: '#12105c',
    950: '#000000',
  },
}
SCSS
$custom: #12105c;
$custom-light: #5f4f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#12105c",
  "rgb": {
    "r": 18,
    "g": 16,
    "b": 92
  },
  "hsl": {
    "h": 241.579,
    "s": 70.37,
    "l": 21.176
  },
  "oklch": {
    "l": 0.24605,
    "c": 0.1283,
    "h": 272.8
  },
  "luminance": 0.01272
}

Semantic roles & 50–950 ramp

primary
#12105C
secondary
#939533
accent
#ED3BE8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #12105C

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

Preview Lab → · Contrast checker → · Palette generator →

#12105C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva