#12104E#12104E

#12104E is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.9% C 0.109 H 275.0°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#12104E
RGBrgb(18, 16, 78)
HSLhsl(242, 66%, 18%)
HSVhsv(242, 79%, 31%)
CMYKcmyk(76.9%, 79.5%, 0%, 69.4%)
CIE-LABlab(9.39, 24.05, -37.52)
CIE-LCHlch(9.39, 44.56, 302.66°)
OKLaboklab(22.92% 0.0094 -0.1085)
OKLCHoklch(22.92% 0.109 275)
XYZxyz(1.8094, 1.0491, 7.3134)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12104E #4C4E10
analogous
#102D4E #12104E #31104E
triadic
#12104E #4E1210 #104E12
tetradic
#12104E #4E102D #4C4E10 #104E31
square
#12104E #4E102D #4C4E10 #104E31
split-complementary
#12104E #4E3110 #2D4E10
monochromatic
#060519 #06061B #12104E #1E1A81 #2925B4

Accessibility & contrast

On white

17.36
#12104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#12104E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12104E
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12104E#FFFFFF#000000##FFFFFF
##12104E1.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D50
Deuteranopia (green-blind)
#00174D
Tritanopia (blue-blind)
#00212D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #12104e;
/* rgb */ color: rgb(18, 16, 78);
/* oklch */ color: oklch(22.9% 0.109 275.0);
Tailwind
colors: {
  custom: {
    50: '#5b4f80',
    500: '#12104e',
    950: '#000000',
  },
}
SCSS
$custom: #12104e;
$custom-light: #5b4f80;
$custom-dark: #000000;
JSON
{
  "hex": "#12104e",
  "rgb": {
    "r": 18,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 241.935,
    "s": 65.957,
    "l": 18.431
  },
  "oklch": {
    "l": 0.22915,
    "c": 0.10887,
    "h": 275
  },
  "luminance": 0.01049
}

Semantic roles & 50–950 ramp

primary
#12104E
secondary
#858832
accent
#E93FE3
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12104E

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

Preview Lab → · Contrast checker → · Palette generator →

#12104E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva