#122174#122174

#122174 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.2% C 0.142 H 267.9°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#122174
RGBrgb(18, 33, 116)
HSLhsl(231, 73%, 26%)
HSVhsv(231, 84%, 45%)
CMYKcmyk(84.5%, 71.6%, 0%, 54.5%)
CIE-LABlab(17.81, 27.36, -48.95)
CIE-LCHlch(17.81, 56.08, 299.21°)
OKLaboklab(30.25% -0.0052 -0.1418)
OKLCHoklch(30.25% 0.142 267.9)
XYZxyz(3.9446, 2.4768, 16.7898)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122174 #746512
analogous
#125274 #122174 #341274
triadic
#122174 #741221 #217412
tetradic
#122174 #741252 #746512 #127434
square
#122174 #741252 #746512 #127434
split-complementary
#122174 #743412 #527412
monochromatic
#04081A #0A123F #122174 #1A30A9 #2340DD

Accessibility & contrast

On white

14.04
#122174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#122174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122174
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122174#FFFFFF#000000##FFFFFF
##1221741.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #122174;
/* rgb */ color: rgb(18, 33, 116);
/* oklch */ color: oklch(30.2% 0.142 267.9);
Tailwind
colors: {
  custom: {
    50: '#645c9d',
    500: '#122174',
    950: '#000000',
  },
}
SCSS
$custom: #122174;
$custom-light: #645c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#122174",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 230.816,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30246,
    "c": 0.14191,
    "h": 267.9
  },
  "luminance": 0.02477
}

Semantic roles & 50–950 ramp

primary
#122174
secondary
#AB9937
accent
#D438F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #122174

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

Preview Lab → · Contrast checker → · Palette generator →

#122174 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva