#122956#122956

#122956 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.1% C 0.087 H 262.1°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#122956
RGBrgb(18, 41, 86)
HSLhsl(220, 65%, 20%)
HSVhsv(220, 79%, 34%)
CMYKcmyk(79.1%, 52.3%, 0%, 66.3%)
CIE-LABlab(17.40, 9.02, -29.93)
CIE-LCHlch(17.40, 31.26, 286.77°)
OKLaboklab(29.09% -0.0119 -0.0859)
OKLCHoklch(29.09% 0.087 262.1)
XYZxyz(2.7215, 2.3861, 9.1194)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122956 #563F12
analogous
#124B56 #122956 #1D1256
triadic
#122956 #561229 #295612
tetradic
#122956 #56124B #563F12 #12561D
square
#122956 #56124B #563F12 #12561D
split-complementary
#122956 #561D12 #4B5612
monochromatic
#050C19 #071123 #122956 #1D4189 #2759BB

Accessibility & contrast

On white

14.22
#122956 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#122956 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122956
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122956#FFFFFF#000000##FFFFFF
##1229561.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102E58
Deuteranopia (green-blind)
#002855
Tritanopia (blue-blind)
#00343B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #122956;
/* rgb */ color: rgb(18, 41, 86);
/* oklch */ color: oklch(29.1% 0.087 262.1);
Tailwind
colors: {
  custom: {
    50: '#5b6286',
    500: '#122956',
    950: '#000000',
  },
}
SCSS
$custom: #122956;
$custom-light: #5b6286;
$custom-dark: #000000;
JSON
{
  "hex": "#122956",
  "rgb": {
    "r": 18,
    "g": 41,
    "b": 86
  },
  "hsl": {
    "h": 219.706,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29091,
    "c": 0.08672,
    "h": 262.1
  },
  "luminance": 0.02386
}

Semantic roles & 50–950 ramp

primary
#122956
secondary
#8F7035
accent
#AF3FE8
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #122956

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

Preview Lab → · Contrast checker → · Palette generator →

#122956 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva