#12177E#12177E

#12177E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.166 H 268.9°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#12177E
RGBrgb(18, 23, 126)
HSLhsl(237, 75%, 28%)
HSVhsv(237, 86%, 49%)
CMYKcmyk(85.7%, 81.7%, 0%, 50.6%)
CIE-LABlab(16.73, 37.35, -57.14)
CIE-LCHlch(16.73, 68.26, 303.17°)
OKLaboklab(29.82% -0.0031 -0.1655)
OKLCHoklch(29.82% 0.166 268.9)
XYZxyz(4.3205, 2.2472, 19.9407)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12177E #7E7912
analogous
#124D7E #12177E #43127E
triadic
#12177E #7E1217 #177E12
tetradic
#12177E #7E124D #7E7912 #127E43
square
#12177E #7E124D #7E7912 #127E43
split-complementary
#12177E #7E4312 #4D7E12
monochromatic
#04051B #0A0D48 #12177E #1A21B4 #2A32E1

Accessibility & contrast

On white

14.49
#12177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#12177E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12177E
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12177E#FFFFFF#000000##FFFFFF
##12177E1.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00247C
Tritanopia (blue-blind)
#00374A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #12177e;
/* rgb */ color: rgb(18, 23, 126);
/* oklch */ color: oklch(29.8% 0.166 268.9);
Tailwind
colors: {
  custom: {
    50: '#6856a5',
    500: '#12177e',
    950: '#000000',
  },
}
SCSS
$custom: #12177e;
$custom-light: #6856a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12177e",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 237.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29816,
    "c": 0.16555,
    "h": 268.9
  },
  "luminance": 0.02248
}

Semantic roles & 50–950 ramp

primary
#12177E
secondary
#B4AE38
accent
#E936F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #12177E

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

Preview Lab → · Contrast checker → · Palette generator →

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