#12127E#12127E

#12127E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.2% C 0.170 H 269.3°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#12127E
RGBrgb(18, 18, 126)
HSLhsl(240, 75%, 28%)
HSVhsv(240, 86%, 49%)
CMYKcmyk(85.7%, 85.7%, 0%, 50.6%)
CIE-LABlab(15.84, 39.97, -58.63)
CIE-LCHlch(15.84, 70.96, 304.29°)
OKLaboklab(29.19% -0.0021 -0.1698)
OKLCHoklch(29.19% 0.17 269.3)
XYZxyz(4.2304, 2.0671, 19.9106)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12127E #7E7E12
analogous
#12487E #12127E #48127E
triadic
#12127E #7E1212 #127E12
tetradic
#12127E #7E1248 #7E7E12 #127E48
square
#12127E #7E1248 #7E7E12 #127E48
split-complementary
#12127E #7E4812 #487E12
monochromatic
#04041B #0A0A48 #12127E #1A1AB4 #2A2AE1

Accessibility & contrast

On white

14.86
#12127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#12127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12127E
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12127E#FFFFFF#000000##FFFFFF
##12127E1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00227C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #12127e;
/* rgb */ color: rgb(18, 18, 126);
/* oklch */ color: oklch(29.2% 0.170 269.3);
Tailwind
colors: {
  custom: {
    50: '#6853a5',
    500: '#12127e',
    950: '#000000',
  },
}
SCSS
$custom: #12127e;
$custom-light: #6853a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12127e",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 240,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.2919,
    "c": 0.16976,
    "h": 269.3
  },
  "luminance": 0.02068
}

Semantic roles & 50–950 ramp

primary
#12127E
secondary
#B4B438
accent
#F236F2
background
#F6F4FA
surface
#ECE7F4
border
#C7C3CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #12127E

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

Preview Lab → · Contrast checker → · Palette generator →

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