#122666#122666

#122666 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.8% C 0.115 H 266.1°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#122666
RGBrgb(18, 38, 102)
HSLhsl(226, 70%, 24%)
HSVhsv(226, 82%, 40%)
CMYKcmyk(82.4%, 62.7%, 0%, 60%)
CIE-LABlab(17.80, 18.08, -39.88)
CIE-LCHlch(17.80, 43.78, 294.39°)
OKLaboklab(29.82% -0.0078 -0.1152)
OKLCHoklch(29.82% 0.115 266.1)
XYZxyz(3.3400, 2.4738, 12.8692)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122666 #665212
analogous
#125066 #122666 #281266
triadic
#122666 #661226 #266612
tetradic
#122666 #661250 #665212 #126628
square
#122666 #661250 #665212 #126628
split-complementary
#122666 #662812 #506612
monochromatic
#050A1A #091332 #122666 #1B399A #244DCE

Accessibility & contrast

On white

14.05
#122666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#122666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122666
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122666#FFFFFF#000000##FFFFFF
##1226661.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003068
Deuteranopia (green-blind)
#002865
Tritanopia (blue-blind)
#003642
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #122666;
/* rgb */ color: rgb(18, 38, 102);
/* oklch */ color: oklch(29.8% 0.115 266.1);
Tailwind
colors: {
  custom: {
    50: '#5f5f92',
    500: '#122666',
    950: '#000000',
  },
}
SCSS
$custom: #122666;
$custom-light: #5f5f92;
$custom-dark: #000000;
JSON
{
  "hex": "#122666",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 102
  },
  "hsl": {
    "h": 225.714,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.29815,
    "c": 0.11547,
    "h": 266.1
  },
  "luminance": 0.02474
}

Semantic roles & 50–950 ramp

primary
#122666
secondary
#9E8536
accent
#C23BED
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#05040D
muted
#79797E

Preview Lab

Preview with #122666

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

Preview Lab → · Contrast checker → · Palette generator →

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