#122776#122776

#122776 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.6% C 0.137 H 266.5°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#122776
RGBrgb(18, 39, 118)
HSLhsl(227, 74%, 27%)
HSVhsv(227, 85%, 46%)
CMYKcmyk(84.7%, 66.9%, 0%, 53.7%)
CIE-LABlab(19.59, 23.99, -47.32)
CIE-LCHlch(19.59, 53.06, 296.89°)
OKLaboklab(31.61% -0.0085 -0.137)
OKLCHoklch(31.61% 0.137 266.5)
XYZxyz(4.2438, 2.8871, 17.4696)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122776 #766112
analogous
#125976 #122776 #2F1276
triadic
#122776 #761227 #277612
tetradic
#122776 #761259 #766112 #12762F
square
#122776 #761259 #766112 #12762F
split-complementary
#122776 #762F12 #597612
monochromatic
#04091B #0A1541 #122776 #1A39AB #254CDE

Accessibility & contrast

On white

13.31
#122776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#122776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122776
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122776#FFFFFF#000000##FFFFFF
##1227761.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #122776;
/* rgb */ color: rgb(18, 39, 118);
/* oklch */ color: oklch(31.6% 0.137 266.5);
Tailwind
colors: {
  custom: {
    50: '#64609e',
    500: '#122776',
    950: '#000000',
  },
}
SCSS
$custom: #122776;
$custom-light: #64609e;
$custom-dark: #000000;
JSON
{
  "hex": "#122776",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 118
  },
  "hsl": {
    "h": 227.4,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31605,
    "c": 0.13727,
    "h": 266.5
  },
  "luminance": 0.02888
}

Semantic roles & 50–950 ramp

primary
#122776
secondary
#AD9437
accent
#C938F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #122776

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

Preview Lab → · Contrast checker → · Palette generator →

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