#123872#123872

#123872 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.0% C 0.109 H 259.0°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#123872
RGBrgb(18, 56, 114)
HSLhsl(216, 73%, 26%)
HSVhsv(216, 84%, 45%)
CMYKcmyk(84.2%, 50.9%, 0%, 55.3%)
CIE-LABlab(24.23, 10.12, -37.21)
CIE-LCHlch(24.23, 38.56, 285.21°)
OKLaboklab(35% -0.0208 -0.107)
OKLCHoklch(35% 0.109 259)
XYZxyz(4.6998, 4.1713, 16.4738)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123872 #724C12
analogous
#126872 #123872 #1C1272
triadic
#123872 #721238 #387212
tetradic
#123872 #721268 #724C12 #12721C
square
#123872 #721268 #724C12 #12721C
split-complementary
#123872 #721C12 #687212
monochromatic
#040D1A #0A1E3D #123872 #1A52A7 #236CDC

Accessibility & contrast

On white

11.45
#123872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#123872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123872
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123872#FFFFFF#000000##FFFFFF
##1238721.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163E74
Deuteranopia (green-blind)
#003671
Tritanopia (blue-blind)
#00464F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #123872;
/* rgb */ color: rgb(18, 56, 114);
/* oklch */ color: oklch(35.0% 0.109 259.0);
Tailwind
colors: {
  custom: {
    50: '#616e9b',
    500: '#123872',
    950: '#000000',
  },
}
SCSS
$custom: #123872;
$custom-light: #616e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#123872",
  "rgb": {
    "r": 18,
    "g": 56,
    "b": 114
  },
  "hsl": {
    "h": 216.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34999,
    "c": 0.10901,
    "h": 259
  },
  "luminance": 0.04172
}

Semantic roles & 50–950 ramp

primary
#123872
secondary
#A97C37
accent
#A738EF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #123872

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

Preview Lab → · Contrast checker → · Palette generator →

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