#122562#122562

#122562 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 29.2% C 0.111 H 266.3°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#122562
RGBrgb(18, 37, 98)
HSLhsl(226, 69%, 23%)
HSVhsv(226, 82%, 38%)
CMYKcmyk(81.6%, 62.2%, 0%, 61.6%)
CIE-LABlab(17.15, 17.13, -38.31)
CIE-LCHlch(17.15, 41.97, 294.10°)
OKLaboklab(29.22% -0.0072 -0.1106)
OKLCHoklch(29.22% 0.111 266.3)
XYZxyz(3.1149, 2.3332, 11.8391)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122562 #624F12
analogous
#124D62 #122562 #271262
triadic
#122562 #621225 #256212
tetradic
#122562 #62124D #624F12 #126227
square
#122562 #62124D #624F12 #126227
split-complementary
#122562 #622712 #4D6212
monochromatic
#050A1A #09112E #122562 #1B3996 #254CC9

Accessibility & contrast

On white

14.32
#122562 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#122562 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122562
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122562#FFFFFF#000000##FFFFFF
##1225621.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E64
Deuteranopia (green-blind)
#002761
Tritanopia (blue-blind)
#00343F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #122562;
/* rgb */ color: rgb(18, 37, 98);
/* oklch */ color: oklch(29.2% 0.111 266.3);
Tailwind
colors: {
  custom: {
    50: '#5e5f8f',
    500: '#122562',
    950: '#000000',
  },
}
SCSS
$custom: #122562;
$custom-light: #5e5f8f;
$custom-dark: #000000;
JSON
{
  "hex": "#122562",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 98
  },
  "hsl": {
    "h": 225.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29215,
    "c": 0.11086,
    "h": 266.3
  },
  "luminance": 0.02334
}

Semantic roles & 50–950 ramp

primary
#122562
secondary
#9A8236
accent
#C23CEC
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #122562

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

Preview Lab → · Contrast checker → · Palette generator →

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