#122A6F#122A6F

#122A6F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.5% C 0.123 H 265.2°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#122A6F
RGBrgb(18, 42, 111)
HSLhsl(225, 72%, 25%)
HSVhsv(225, 84%, 44%)
CMYKcmyk(83.8%, 62.2%, 0%, 56.5%)
CIE-LABlab(19.77, 18.95, -42.52)
CIE-LCHlch(19.77, 46.55, 294.02°)
OKLaboklab(31.54% -0.0104 -0.1229)
OKLCHoklch(31.54% 0.123 265.2)
XYZxyz(3.9456, 2.9318, 15.3938)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A6F #6F5712
analogous
#12586F #122A6F #28126F
triadic
#122A6F #6F122A #2A6F12
tetradic
#122A6F #6F1258 #6F5712 #126F28
square
#122A6F #6F1258 #6F5712 #126F28
split-complementary
#122A6F #6F2812 #586F12
monochromatic
#040A1A #09163A #122A6F #1B3EA4 #2352D8

Accessibility & contrast

On white

13.24
#122A6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#122A6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122A6F
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A6F#FFFFFF#000000##FFFFFF
##122A6F1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#003C48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #122a6f;
/* rgb */ color: rgb(18, 42, 111);
/* oklch */ color: oklch(31.5% 0.123 265.2);
Tailwind
colors: {
  custom: {
    50: '#626399',
    500: '#122a6f',
    950: '#000000',
  },
}
SCSS
$custom: #122a6f;
$custom-light: #626399;
$custom-dark: #000000;
JSON
{
  "hex": "#122a6f",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 111
  },
  "hsl": {
    "h": 224.516,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31538,
    "c": 0.12335,
    "h": 265.2
  },
  "luminance": 0.02932
}

Semantic roles & 50–950 ramp

primary
#122A6F
secondary
#A68937
accent
#C039EF
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #122A6F

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

Preview Lab → · Contrast checker → · Palette generator →

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