#123371#123371

#123371 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 33.7% C 0.114 H 261.5°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#123371
RGBrgb(18, 51, 113)
HSLhsl(219, 73%, 26%)
HSVhsv(219, 84%, 44%)
CMYKcmyk(84.1%, 54.9%, 0%, 55.7%)
CIE-LABlab(22.61, 13.28, -39.18)
CIE-LCHlch(22.61, 41.37, 288.72°)
OKLaboklab(33.74% -0.0168 -0.1129)
OKLCHoklch(33.74% 0.114 261.5)
XYZxyz(4.4128, 3.6880, 16.0989)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123371 #715012
analogous
#126271 #123371 #201271
triadic
#123371 #711233 #337112
tetradic
#123371 #711262 #715012 #127120
square
#123371 #711262 #715012 #127120
split-complementary
#123371 #712012 #627112
monochromatic
#040C1A #0A1B3C #123371 #1A4BA6 #2363DB

Accessibility & contrast

On white

12.08
#123371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#123371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123371
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123371#FFFFFF#000000##FFFFFF
##1233711.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063B73
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#00424C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #123371;
/* rgb */ color: rgb(18, 51, 113);
/* oklch */ color: oklch(33.7% 0.114 261.5);
Tailwind
colors: {
  custom: {
    50: '#616a9a',
    500: '#123371',
    950: '#000000',
  },
}
SCSS
$custom: #123371;
$custom-light: #616a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#123371",
  "rgb": {
    "r": 18,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 219.158,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33737,
    "c": 0.11418,
    "h": 261.5
  },
  "luminance": 0.03689
}

Semantic roles & 50–950 ramp

primary
#123371
secondary
#A88137
accent
#B039EF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #123371

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

Preview Lab → · Contrast checker → · Palette generator →

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