#123771#123771

#123771 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 34.7% C 0.109 H 259.4°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#123771
RGBrgb(18, 55, 113)
HSLhsl(217, 73%, 26%)
HSVhsv(217, 84%, 44%)
CMYKcmyk(84.1%, 51.3%, 0%, 55.7%)
CIE-LABlab(23.84, 10.40, -37.19)
CIE-LCHlch(23.84, 38.62, 285.63°)
OKLaboklab(34.68% -0.0201 -0.107)
OKLCHoklch(34.68% 0.109 259.4)
XYZxyz(4.5952, 4.0527, 16.1596)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123771 #714C12
analogous
#126671 #123771 #1D1271
triadic
#123771 #711237 #377112
tetradic
#123771 #711266 #714C12 #12711D
square
#123771 #711266 #714C12 #12711D
split-complementary
#123771 #711D12 #667112
monochromatic
#040D1A #0A1D3C #123771 #1A51A6 #236ADB

Accessibility & contrast

On white

11.60
#123771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#123771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123771
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123771#FFFFFF#000000##FFFFFF
##1237711.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153D73
Deuteranopia (green-blind)
#003570
Tritanopia (blue-blind)
#00454E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #123771;
/* rgb */ color: rgb(18, 55, 113);
/* oklch */ color: oklch(34.7% 0.109 259.4);
Tailwind
colors: {
  custom: {
    50: '#616d9a',
    500: '#123771',
    950: '#000000',
  },
}
SCSS
$custom: #123771;
$custom-light: #616d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#123771",
  "rgb": {
    "r": 18,
    "g": 55,
    "b": 113
  },
  "hsl": {
    "h": 216.632,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3468,
    "c": 0.10885,
    "h": 259.4
  },
  "luminance": 0.04053
}

Semantic roles & 50–950 ramp

primary
#123771
secondary
#A87C37
accent
#A839EF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #123771

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

Preview Lab → · Contrast checker → · Palette generator →

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