#122566#122566

#122566 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.6% C 0.117 H 266.5°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#122566
RGBrgb(18, 37, 102)
HSLhsl(226, 70%, 24%)
HSVhsv(226, 82%, 40%)
CMYKcmyk(82.4%, 63.7%, 0%, 60%)
CIE-LABlab(17.51, 18.82, -40.35)
CIE-LCHlch(17.51, 44.52, 295.00°)
OKLaboklab(29.6% -0.0071 -0.1166)
OKLCHoklch(29.6% 0.117 266.5)
XYZxyz(3.3085, 2.4107, 12.8587)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122566 #665312
analogous
#124F66 #122566 #291266
triadic
#122566 #661225 #256612
tetradic
#122566 #66124F #665312 #126629
square
#122566 #66124F #665312 #126629
split-complementary
#122566 #662912 #4F6612
monochromatic
#05091A #091232 #122566 #1B389A #244BCE

Accessibility & contrast

On white

14.17
#122566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#122566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122566
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122566#FFFFFF#000000##FFFFFF
##1225661.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F68
Deuteranopia (green-blind)
#002765
Tritanopia (blue-blind)
#003641
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #122566;
/* rgb */ color: rgb(18, 37, 102);
/* oklch */ color: oklch(29.6% 0.117 266.5);
Tailwind
colors: {
  custom: {
    50: '#5f5f92',
    500: '#122566',
    950: '#000000',
  },
}
SCSS
$custom: #122566;
$custom-light: #5f5f92;
$custom-dark: #000000;
JSON
{
  "hex": "#122566",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 102
  },
  "hsl": {
    "h": 226.429,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29599,
    "c": 0.11683,
    "h": 266.5
  },
  "luminance": 0.02411
}

Semantic roles & 50–950 ramp

primary
#122566
secondary
#9E8636
accent
#C53BED
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#05040D
muted
#79797E

Preview Lab

Preview with #122566

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

Preview Lab → · Contrast checker → · Palette generator →

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