#122173#122173

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

Color values

HEX#122173
RGBrgb(18, 33, 115)
HSLhsl(231, 73%, 26%)
HSVhsv(231, 84%, 45%)
CMYKcmyk(84.3%, 71.3%, 0%, 54.9%)
CIE-LABlab(17.71, 26.97, -48.48)
CIE-LCHlch(17.71, 55.47, 299.09°)
OKLaboklab(30.14% -0.0051 -0.1404)
OKLCHoklch(30.14% 0.141 267.9)
XYZxyz(3.8867, 2.4537, 16.4851)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122173 #736412
analogous
#125173 #122173 #331273
triadic
#122173 #731221 #217312
tetradic
#122173 #731251 #736412 #127333
square
#122173 #731251 #736412 #127333
split-complementary
#122173 #733312 #517312
monochromatic
#04081A #0A123E #122173 #1A30A8 #2340DD

Accessibility & contrast

On white

14.09
#122173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#122173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122173
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122173#FFFFFF#000000##FFFFFF
##1221731.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #122173;
/* rgb */ color: rgb(18, 33, 115);
/* oklch */ color: oklch(30.1% 0.141 267.9);
Tailwind
colors: {
  custom: {
    50: '#645c9c',
    500: '#122173',
    950: '#000000',
  },
}
SCSS
$custom: #122173;
$custom-light: #645c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#122173",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 230.722,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30137,
    "c": 0.14053,
    "h": 267.9
  },
  "luminance": 0.02454
}

Semantic roles & 50–950 ramp

primary
#122173
secondary
#AA9837
accent
#D338F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #122173

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

Preview Lab → · Contrast checker → · Palette generator →

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