#122A6E#122A6E

#122A6E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.4% C 0.122 H 265.1°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#122A6E
RGBrgb(18, 42, 110)
HSLhsl(224, 72%, 25%)
HSVhsv(224, 84%, 43%)
CMYKcmyk(83.6%, 61.8%, 0%, 56.9%)
CIE-LABlab(19.68, 18.53, -42.02)
CIE-LCHlch(19.68, 45.92, 293.80°)
OKLaboklab(31.44% -0.0104 -0.1214)
OKLCHoklch(31.44% 0.122 265.1)
XYZxyz(3.8909, 2.9099, 15.1054)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A6E #6E5612
analogous
#12586E #122A6E #28126E
triadic
#122A6E #6E122A #2A6E12
tetradic
#122A6E #6E1258 #6E5612 #126E28
square
#122A6E #6E1258 #6E5612 #126E28
split-complementary
#122A6E #6E2812 #586E12
monochromatic
#040A1A #091639 #122A6E #1B3EA3 #2352D7

Accessibility & contrast

On white

13.27
#122A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#122A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122A6E
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A6E#FFFFFF#000000##FFFFFF
##122A6E1.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#003B47
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #122a6e;
/* rgb */ color: rgb(18, 42, 110);
/* oklch */ color: oklch(31.4% 0.122 265.1);
Tailwind
colors: {
  custom: {
    50: '#616398',
    500: '#122a6e',
    950: '#000000',
  },
}
SCSS
$custom: #122a6e;
$custom-light: #616398;
$custom-dark: #000000;
JSON
{
  "hex": "#122a6e",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 110
  },
  "hsl": {
    "h": 224.348,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31444,
    "c": 0.12188,
    "h": 265.1
  },
  "luminance": 0.0291
}

Semantic roles & 50–950 ramp

primary
#122A6E
secondary
#A58837
accent
#BF39EF
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #122A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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