#123173#123173

#123173 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.5% C 0.120 H 262.8°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#123173
RGBrgb(18, 49, 115)
HSLhsl(221, 73%, 26%)
HSVhsv(221, 84%, 45%)
CMYKcmyk(84.3%, 57.4%, 0%, 54.9%)
CIE-LABlab(22.17, 15.57, -41.18)
CIE-LCHlch(22.17, 44.03, 290.71°)
OKLaboklab(33.45% -0.0151 -0.1188)
OKLCHoklch(33.45% 0.12 262.8)
XYZxyz(4.4412, 3.5625, 16.6699)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123173 #735412
analogous
#126173 #123173 #231273
triadic
#123173 #731231 #317312
tetradic
#123173 #731261 #735412 #127323
square
#123173 #731261 #735412 #127323
split-complementary
#123173 #732312 #617312
monochromatic
#040B1A #0A1A3E #123173 #1A48A8 #235EDD

Accessibility & contrast

On white

12.26
#123173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#123173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123173
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123173#FFFFFF#000000##FFFFFF
##1231731.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A75
Deuteranopia (green-blind)
#003172
Tritanopia (blue-blind)
#00414D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #123173;
/* rgb */ color: rgb(18, 49, 115);
/* oklch */ color: oklch(33.5% 0.120 262.8);
Tailwind
colors: {
  custom: {
    50: '#62689c',
    500: '#123173',
    950: '#000000',
  },
}
SCSS
$custom: #123173;
$custom-light: #62689c;
$custom-dark: #000000;
JSON
{
  "hex": "#123173",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 115
  },
  "hsl": {
    "h": 220.825,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33452,
    "c": 0.11981,
    "h": 262.8
  },
  "luminance": 0.03563
}

Semantic roles & 50–950 ramp

primary
#123173
secondary
#AA8537
accent
#B538F0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #123173

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

Preview Lab → · Contrast checker → · Palette generator →

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