#122A5F#122A5F

#122A5F is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.1% C 0.099 H 263.3°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#122A5F
RGBrgb(18, 42, 95)
HSLhsl(221, 68%, 22%)
HSVhsv(221, 81%, 37%)
CMYKcmyk(81.1%, 55.8%, 0%, 62.7%)
CIE-LABlab(18.41, 12.15, -34.28)
CIE-LCHlch(18.41, 36.37, 289.52°)
OKLaboklab(30.09% -0.0115 -0.0987)
OKLCHoklch(30.09% 0.099 263.3)
XYZxyz(3.1422, 2.6104, 11.1625)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A5F #5F4712
analogous
#12515F #122A5F #21125F
triadic
#122A5F #5F122A #2A5F12
tetradic
#122A5F #5F1251 #5F4712 #125F21
square
#122A5F #5F1251 #5F4712 #125F21
split-complementary
#122A5F #5F2112 #515F12
monochromatic
#050B1A #08132C #122A5F #1C4192 #2557C6

Accessibility & contrast

On white

13.80
#122A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#122A5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122A5F
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A5F#FFFFFF#000000##FFFFFF
##122A5F1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063161
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#003740
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #122a5f;
/* rgb */ color: rgb(18, 42, 95);
/* oklch */ color: oklch(30.1% 0.099 263.3);
Tailwind
colors: {
  custom: {
    50: '#5d638d',
    500: '#122a5f',
    950: '#000000',
  },
}
SCSS
$custom: #122a5f;
$custom-light: #5d638d;
$custom-dark: #000000;
JSON
{
  "hex": "#122a5f",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 95
  },
  "hsl": {
    "h": 221.299,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30088,
    "c": 0.09935,
    "h": 263.3
  },
  "luminance": 0.02611
}

Semantic roles & 50–950 ramp

primary
#122A5F
secondary
#977936
accent
#B53DEB
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #122A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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