#12137E#12137E

#12137E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.169 H 269.2°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).

Color values

HEX#12137E
RGBrgb(18, 19, 126)
HSLhsl(239, 75%, 28%)
HSVhsv(239, 86%, 49%)
CMYKcmyk(85.7%, 84.9%, 0%, 50.6%)
CIE-LABlab(16.00, 39.47, -58.35)
CIE-LCHlch(16.00, 70.45, 304.08°)
OKLaboklab(29.31% -0.0023 -0.1689)
OKLCHoklch(29.31% 0.169 269.2)
XYZxyz(4.2469, 2.1002, 19.9162)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12137E #7E7D12
analogous
#12497E #12137E #47127E
triadic
#12137E #7E1213 #137E12
tetradic
#12137E #7E1249 #7E7D12 #127E47
square
#12137E #7E1249 #7E7D12 #127E47
split-complementary
#12137E #7E4712 #497E12
monochromatic
#04041B #0A0B48 #12137E #1A1BB4 #2A2CE1

Accessibility & contrast

On white

14.79
#12137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#12137E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12137E
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12137E#FFFFFF#000000##FFFFFF
##12137E1.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #12137e;
/* rgb */ color: rgb(18, 19, 126);
/* oklch */ color: oklch(29.3% 0.169 269.2);
Tailwind
colors: {
  custom: {
    50: '#6854a5',
    500: '#12137e',
    950: '#000000',
  },
}
SCSS
$custom: #12137e;
$custom-light: #6854a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12137e",
  "rgb": {
    "r": 18,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 239.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29307,
    "c": 0.16897,
    "h": 269.2
  },
  "luminance": 0.02101
}

Semantic roles & 50–950 ramp

primary
#12137E
secondary
#B4B338
accent
#F036F2
background
#F6F4FA
surface
#ECE8F4
border
#C7C4CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #12137E

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

Preview Lab → · Contrast checker → · Palette generator →

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