#122A6D#122A6D

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

Color values

HEX#122A6D
RGBrgb(18, 42, 109)
HSLhsl(224, 72%, 25%)
HSVhsv(224, 83%, 43%)
CMYKcmyk(83.5%, 61.5%, 0%, 57.3%)
CIE-LABlab(19.59, 18.11, -41.52)
CIE-LCHlch(19.59, 45.30, 293.57°)
OKLaboklab(31.35% -0.0104 -0.12)
OKLCHoklch(31.35% 0.12 265)
XYZxyz(3.8368, 2.8882, 14.8203)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A6D #6D5512
analogous
#12586D #122A6D #28126D
triadic
#122A6D #6D122A #2A6D12
tetradic
#122A6D #6D1258 #6D5512 #126D28
square
#122A6D #6D1258 #6D5512 #126D28
split-complementary
#122A6D #6D2812 #586D12
monochromatic
#040A1A #091638 #122A6D #1B3EA2 #2352D6

Accessibility & contrast

On white

13.31
#122A6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122A6D
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A6D#FFFFFF#000000##FFFFFF
##122A6D1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#003B47
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #122a6d;
/* rgb */ color: rgb(18, 42, 109);
/* oklch */ color: oklch(31.4% 0.120 265.0);
Tailwind
colors: {
  custom: {
    50: '#616397',
    500: '#122a6d',
    950: '#000000',
  },
}
SCSS
$custom: #122a6d;
$custom-light: #616397;
$custom-dark: #000000;
JSON
{
  "hex": "#122a6d",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 109
  },
  "hsl": {
    "h": 224.176,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.3135,
    "c": 0.12041,
    "h": 265
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#122A6D
secondary
#A48737
accent
#BF39EE
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #122A6D

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

Preview Lab → · Contrast checker → · Palette generator →

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