#12107F#12107F

#12107F is a dark, vivid blue. Relative luminance 0.020; OKLCH L 29.1% C 0.172 H 269.3°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#12107F
RGBrgb(18, 16, 127)
HSLhsl(241, 78%, 28%)
HSVhsv(241, 87%, 50%)
CMYKcmyk(85.8%, 87.4%, 0%, 50.2%)
CIE-LABlab(15.65, 41.25, -59.58)
CIE-LCHlch(15.65, 72.46, 304.70°)
OKLaboklab(29.1% -0.002 -0.1724)
OKLCHoklch(29.1% 0.172 269.3)
XYZxyz(4.2642, 2.0310, 20.2418)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12107F #7D7F10
analogous
#10457F #12107F #49107F
triadic
#12107F #7F1210 #107F12
tetradic
#12107F #7F1045 #7D7F10 #107F49
square
#12107F #7F1045 #7D7F10 #107F49
split-complementary
#12107F #7F4910 #457F10
monochromatic
#04031B #0A0949 #12107F #1A17B5 #2926E4

Accessibility & contrast

On white

14.93
#12107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#12107F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12107F
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12107F#FFFFFF#000000##FFFFFF
##12107F1.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D82
Deuteranopia (green-blind)
#00217D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #12107f;
/* rgb */ color: rgb(18, 16, 127);
/* oklch */ color: oklch(29.1% 0.172 269.3);
Tailwind
colors: {
  custom: {
    50: '#6952a5',
    500: '#12107f',
    950: '#000000',
  },
}
SCSS
$custom: #12107f;
$custom-light: #6952a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12107f",
  "rgb": {
    "r": 18,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 241.081,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.29099,
    "c": 0.17245,
    "h": 269.3
  },
  "luminance": 0.02031
}

Semantic roles & 50–950 ramp

primary
#12107F
secondary
#B3B536
accent
#F434F1
background
#F6F4FA
surface
#ECE7F4
border
#C7C3CE
text
#08020F
muted
#7A787F

Preview Lab

Preview with #12107F

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

Preview Lab → · Contrast checker → · Palette generator →

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