#122771#122771

#122771 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.1% C 0.130 H 266.3°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#122771
RGBrgb(18, 39, 113)
HSLhsl(227, 73%, 26%)
HSVhsv(227, 84%, 44%)
CMYKcmyk(84.1%, 65.5%, 0%, 55.7%)
CIE-LABlab(19.10, 21.95, -44.90)
CIE-LCHlch(19.10, 49.97, 296.05°)
OKLaboklab(31.1% -0.0084 -0.1299)
OKLCHoklch(31.1% 0.13 266.3)
XYZxyz(3.9546, 2.7714, 15.9461)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122771 #715C12
analogous
#125671 #122771 #2C1271
triadic
#122771 #711227 #277112
tetradic
#122771 #711256 #715C12 #12712C
square
#122771 #711256 #715C12 #12712C
split-complementary
#122771 #712C12 #567112
monochromatic
#04091A #0A153C #122771 #1A39A6 #234BDB

Accessibility & contrast

On white

13.51
#122771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#122771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122771
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122771#FFFFFF#000000##FFFFFF
##1227711.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #122771;
/* rgb */ color: rgb(18, 39, 113);
/* oklch */ color: oklch(31.1% 0.130 266.3);
Tailwind
colors: {
  custom: {
    50: '#62609b',
    500: '#122771',
    950: '#000000',
  },
}
SCSS
$custom: #122771;
$custom-light: #62609b;
$custom-dark: #000000;
JSON
{
  "hex": "#122771",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 113
  },
  "hsl": {
    "h": 226.737,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31101,
    "c": 0.13019,
    "h": 266.3
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#122771
secondary
#A88F37
accent
#C739EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #122771

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

Preview Lab → · Contrast checker → · Palette generator →

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