#123971#123971

#123971 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.2% C 0.106 H 258.2°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#123971
RGBrgb(18, 57, 113)
HSLhsl(215, 73%, 26%)
HSVhsv(215, 84%, 44%)
CMYKcmyk(84.1%, 49.6%, 0%, 55.7%)
CIE-LABlab(24.47, 8.98, -36.18)
CIE-LCHlch(24.47, 37.28, 283.94°)
OKLaboklab(35.16% -0.0218 -0.104)
OKLCHoklch(35.16% 0.106 258.2)
XYZxyz(4.6921, 4.2465, 16.1920)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123971 #714A12
analogous
#126871 #123971 #1A1271
triadic
#123971 #711239 #397112
tetradic
#123971 #711268 #714A12 #12711A
square
#123971 #711268 #714A12 #12711A
split-complementary
#123971 #711A12 #687112
monochromatic
#040D1A #0A1E3C #123971 #1A54A6 #236EDB

Accessibility & contrast

On white

11.36
#123971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#123971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123971
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123971#FFFFFF#000000##FFFFFF
##1239711.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3F73
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#00464F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #123971;
/* rgb */ color: rgb(18, 57, 113);
/* oklch */ color: oklch(35.2% 0.106 258.2);
Tailwind
colors: {
  custom: {
    50: '#616e9a',
    500: '#123971',
    950: '#000000',
  },
}
SCSS
$custom: #123971;
$custom-light: #616e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#123971",
  "rgb": {
    "r": 18,
    "g": 57,
    "b": 113
  },
  "hsl": {
    "h": 215.368,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.35161,
    "c": 0.10623,
    "h": 258.2
  },
  "luminance": 0.04247
}

Semantic roles & 50–950 ramp

primary
#123971
secondary
#A87A37
accent
#A439EF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #123971

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

Preview Lab → · Contrast checker → · Palette generator →

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