#122772#122772

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

Color values

HEX#122772
RGBrgb(18, 39, 114)
HSLhsl(227, 73%, 26%)
HSVhsv(227, 84%, 45%)
CMYKcmyk(84.2%, 65.8%, 0%, 55.3%)
CIE-LABlab(19.20, 22.36, -45.38)
CIE-LCHlch(19.20, 50.59, 296.23°)
OKLaboklab(31.2% -0.0084 -0.1313)
OKLCHoklch(31.2% 0.132 266.3)
XYZxyz(4.0112, 2.7941, 16.2442)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122772 #725D12
analogous
#125772 #122772 #2D1272
triadic
#122772 #721227 #277212
tetradic
#122772 #721257 #725D12 #12722D
square
#122772 #721257 #725D12 #12722D
split-complementary
#122772 #722D12 #577212
monochromatic
#04091A #0A153D #122772 #1A39A7 #234BDC

Accessibility & contrast

On white

13.47
#122772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#122772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122772
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122772#FFFFFF#000000##FFFFFF
##1227721.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#002A71
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #122772;
/* rgb */ color: rgb(18, 39, 114);
/* oklch */ color: oklch(31.2% 0.132 266.3);
Tailwind
colors: {
  custom: {
    50: '#63609b',
    500: '#122772',
    950: '#000000',
  },
}
SCSS
$custom: #122772;
$custom-light: #63609b;
$custom-dark: #000000;
JSON
{
  "hex": "#122772",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 114
  },
  "hsl": {
    "h": 226.875,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31201,
    "c": 0.13162,
    "h": 266.3
  },
  "luminance": 0.02795
}

Semantic roles & 50–950 ramp

primary
#122772
secondary
#A99037
accent
#C738EF
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #122772

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

Preview Lab → · Contrast checker → · Palette generator →

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