#122D6B#122D6B

#122D6B is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.8% C 0.113 H 263.5°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#122D6B
RGBrgb(18, 45, 107)
HSLhsl(222, 71%, 25%)
HSVhsv(222, 83%, 42%)
CMYKcmyk(83.2%, 57.9%, 0%, 58%)
CIE-LABlab(20.31, 15.08, -39.05)
CIE-LCHlch(20.31, 41.86, 291.11°)
OKLaboklab(31.84% -0.0128 -0.1127)
OKLCHoklch(31.84% 0.113 263.5)
XYZxyz(3.8407, 3.0665, 14.2965)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122D6B #6B5012
analogous
#125A6B #122D6B #24126B
triadic
#122D6B #6B122D #2D6B12
tetradic
#122D6B #6B125A #6B5012 #126B24
square
#122D6B #6B125A #6B5012 #126B24
split-complementary
#122D6B #6B2412 #5A6B12
monochromatic
#040B1A #091737 #122D6B #1B439F #2459D4

Accessibility & contrast

On white

13.02
#122D6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#122D6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122D6B
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122D6B#FFFFFF#000000##FFFFFF
##122D6B1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356D
Deuteranopia (green-blind)
#002D6A
Tritanopia (blue-blind)
#003C47
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #122d6b;
/* rgb */ color: rgb(18, 45, 107);
/* oklch */ color: oklch(31.8% 0.113 263.5);
Tailwind
colors: {
  custom: {
    50: '#606596',
    500: '#122d6b',
    950: '#000000',
  },
}
SCSS
$custom: #122d6b;
$custom-light: #606596;
$custom-dark: #000000;
JSON
{
  "hex": "#122d6b",
  "rgb": {
    "r": 18,
    "g": 45,
    "b": 107
  },
  "hsl": {
    "h": 221.798,
    "s": 71.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31836,
    "c": 0.11339,
    "h": 263.5
  },
  "luminance": 0.03067
}

Semantic roles & 50–950 ramp

primary
#122D6B
secondary
#A28236
accent
#B73AEE
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#05050D
muted
#7A7A7E

Preview Lab

Preview with #122D6B

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

Preview Lab → · Contrast checker → · Palette generator →

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