#122662#122662

#122662 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.4% C 0.109 H 265.8°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#122662
RGBrgb(18, 38, 98)
HSLhsl(225, 69%, 23%)
HSVhsv(225, 82%, 38%)
CMYKcmyk(81.6%, 61.2%, 0%, 61.6%)
CIE-LABlab(17.44, 16.39, -37.83)
CIE-LCHlch(17.44, 41.23, 293.43°)
OKLaboklab(29.44% -0.008 -0.1092)
OKLCHoklch(29.44% 0.109 265.8)
XYZxyz(3.1464, 2.3963, 11.8496)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122662 #624E12
analogous
#124E62 #122662 #261262
triadic
#122662 #621226 #266212
tetradic
#122662 #62124E #624E12 #126226
square
#122662 #62124E #624E12 #126226
split-complementary
#122662 #622612 #4E6212
monochromatic
#050A1A #09122E #122662 #1B3A96 #254EC9

Accessibility & contrast

On white

14.19
#122662 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122662
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122662#FFFFFF#000000##FFFFFF
##1226621.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F64
Deuteranopia (green-blind)
#002761
Tritanopia (blue-blind)
#003540
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #122662;
/* rgb */ color: rgb(18, 38, 98);
/* oklch */ color: oklch(29.4% 0.109 265.8);
Tailwind
colors: {
  custom: {
    50: '#5e5f8f',
    500: '#122662',
    950: '#000000',
  },
}
SCSS
$custom: #122662;
$custom-light: #5e5f8f;
$custom-dark: #000000;
JSON
{
  "hex": "#122662",
  "rgb": {
    "r": 18,
    "g": 38,
    "b": 98
  },
  "hsl": {
    "h": 225,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29437,
    "c": 0.10948,
    "h": 265.8
  },
  "luminance": 0.02397
}

Semantic roles & 50–950 ramp

primary
#122662
secondary
#9A8136
accent
#C03CEC
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #122662

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

Preview Lab → · Contrast checker → · Palette generator →

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