#123172#123172

#123172 is a dark, moderate blue. Relative luminance 0.035; OKLCH L 33.4% C 0.118 H 262.6°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#123172
RGBrgb(18, 49, 114)
HSLhsl(221, 73%, 26%)
HSVhsv(221, 84%, 45%)
CMYKcmyk(84.2%, 57%, 0%, 55.3%)
CIE-LABlab(22.09, 15.14, -40.68)
CIE-LCHlch(22.09, 43.40, 290.42°)
OKLaboklab(33.36% -0.0152 -0.1174)
OKLCHoklch(33.36% 0.118 262.6)
XYZxyz(4.3839, 3.5396, 16.3685)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123172 #725312
analogous
#126172 #123172 #231272
triadic
#123172 #721231 #317212
tetradic
#123172 #721261 #725312 #127223
square
#123172 #721261 #725312 #127223
split-complementary
#123172 #722312 #617212
monochromatic
#040B1A #0A1A3D #123172 #1A48A7 #235EDC

Accessibility & contrast

On white

12.30
#123172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #123172
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123172#FFFFFF#000000##FFFFFF
##1231721.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #123172;
/* rgb */ color: rgb(18, 49, 114);
/* oklch */ color: oklch(33.4% 0.118 262.6);
Tailwind
colors: {
  custom: {
    50: '#62689b',
    500: '#123172',
    950: '#000000',
  },
}
SCSS
$custom: #123172;
$custom-light: #62689b;
$custom-dark: #000000;
JSON
{
  "hex": "#123172",
  "rgb": {
    "r": 18,
    "g": 49,
    "b": 114
  },
  "hsl": {
    "h": 220.625,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.33364,
    "c": 0.11834,
    "h": 262.6
  },
  "luminance": 0.0354
}

Semantic roles & 50–950 ramp

primary
#123172
secondary
#A98437
accent
#B438EF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #123172

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

Preview Lab → · Contrast checker → · Palette generator →

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