#122A62#122A62

#122A62 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.3% C 0.104 H 263.8°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#122A62
RGBrgb(18, 42, 98)
HSLhsl(222, 69%, 23%)
HSVhsv(222, 82%, 38%)
CMYKcmyk(81.6%, 57.1%, 0%, 61.6%)
CIE-LABlab(18.65, 13.44, -35.86)
CIE-LCHlch(18.65, 38.30, 290.54°)
OKLaboklab(30.35% -0.0112 -0.1033)
OKLCHoklch(30.35% 0.104 263.8)
XYZxyz(3.2812, 2.6660, 11.8946)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A62 #624A12
analogous
#125262 #122A62 #221262
triadic
#122A62 #62122A #2A6212
tetradic
#122A62 #621252 #624A12 #126222
square
#122A62 #621252 #624A12 #126222
split-complementary
#122A62 #622212 #526212
monochromatic
#050B1A #09142E #122A62 #1B4096 #2556C9

Accessibility & contrast

On white

13.70
#122A62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#122A62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122A62
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A62#FFFFFF#000000##FFFFFF
##122A621.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013164
Deuteranopia (green-blind)
#002A61
Tritanopia (blue-blind)
#003841
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #122a62;
/* rgb */ color: rgb(18, 42, 98);
/* oklch */ color: oklch(30.3% 0.104 263.8);
Tailwind
colors: {
  custom: {
    50: '#5e638f',
    500: '#122a62',
    950: '#000000',
  },
}
SCSS
$custom: #122a62;
$custom-light: #5e638f;
$custom-dark: #000000;
JSON
{
  "hex": "#122a62",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 98
  },
  "hsl": {
    "h": 222,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30349,
    "c": 0.10395,
    "h": 263.8
  },
  "luminance": 0.02666
}

Semantic roles & 50–950 ramp

primary
#122A62
secondary
#9A7C36
accent
#B73CEC
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #122A62

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

Preview Lab → · Contrast checker → · Palette generator →

#122A62 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva