#123871#123871

#123871 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 34.9% C 0.108 H 258.8°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#123871
RGBrgb(18, 56, 113)
HSLhsl(216, 73%, 26%)
HSVhsv(216, 84%, 44%)
CMYKcmyk(84.1%, 50.4%, 0%, 55.7%)
CIE-LABlab(24.16, 9.69, -36.69)
CIE-LCHlch(24.16, 37.95, 284.80°)
OKLaboklab(34.92% -0.0209 -0.1055)
OKLCHoklch(34.92% 0.108 258.8)
XYZxyz(4.6432, 4.1486, 16.1756)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123871 #714B12
analogous
#126771 #123871 #1B1271
triadic
#123871 #711238 #387112
tetradic
#123871 #711267 #714B12 #12711B
square
#123871 #711267 #714B12 #12711B
split-complementary
#123871 #711B12 #677112
monochromatic
#040D1A #0A1E3C #123871 #1A52A6 #236CDB

Accessibility & contrast

On white

11.48
#123871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #123871
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123871#FFFFFF#000000##FFFFFF
##1238711.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173E73
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#00464F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #123871;
/* rgb */ color: rgb(18, 56, 113);
/* oklch */ color: oklch(34.9% 0.108 258.8);
Tailwind
colors: {
  custom: {
    50: '#616e9a',
    500: '#123871',
    950: '#000000',
  },
}
SCSS
$custom: #123871;
$custom-light: #616e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#123871",
  "rgb": {
    "r": 18,
    "g": 56,
    "b": 113
  },
  "hsl": {
    "h": 216,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34919,
    "c": 0.10754,
    "h": 258.8
  },
  "luminance": 0.04149
}

Semantic roles & 50–950 ramp

primary
#123871
secondary
#A87B37
accent
#A639EF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #123871

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

Preview Lab → · Contrast checker → · Palette generator →

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