#12177F#12177F

#12177F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.9% C 0.167 H 268.9°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#12177F
RGBrgb(18, 23, 127)
HSLhsl(237, 75%, 28%)
HSVhsv(237, 86%, 50%)
CMYKcmyk(85.8%, 81.9%, 0%, 50.2%)
CIE-LABlab(16.86, 37.69, -57.57)
CIE-LCHlch(16.86, 68.81, 303.22°)
OKLaboklab(29.94% -0.0033 -0.1668)
OKLCHoklch(29.94% 0.167 268.9)
XYZxyz(4.3853, 2.2732, 20.2822)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12177F #7F7A12
analogous
#124D7F #12177F #43127F
triadic
#12177F #7F1217 #177F12
tetradic
#12177F #7F124D #7F7A12 #127F43
square
#12177F #7F124D #7F7A12 #127F43
split-complementary
#12177F #7F4312 #4D7F12
monochromatic
#04051B #0A0D49 #12177F #1A21B5 #2B33E1

Accessibility & contrast

On white

14.43
#12177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12177F
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12177F#FFFFFF#000000##FFFFFF
##12177F1.0014.431.4514.43
#FFFFFF14.431.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00247D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #12177f;
/* rgb */ color: rgb(18, 23, 127);
/* oklch */ color: oklch(29.9% 0.167 268.9);
Tailwind
colors: {
  custom: {
    50: '#6856a5',
    500: '#12177f',
    950: '#000000',
  },
}
SCSS
$custom: #12177f;
$custom-light: #6856a5;
$custom-dark: #000000;
JSON
{
  "hex": "#12177f",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 237.248,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.29941,
    "c": 0.16679,
    "h": 268.9
  },
  "luminance": 0.02274
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #12177F

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

Preview Lab → · Contrast checker → · Palette generator →

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