#122855#122855

#122855 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.8% C 0.087 H 262.6°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#122855
RGBrgb(18, 40, 85)
HSLhsl(220, 65%, 20%)
HSVhsv(220, 79%, 33%)
CMYKcmyk(78.8%, 52.9%, 0%, 66.7%)
CIE-LABlab(17.00, 9.33, -29.90)
CIE-LCHlch(17.00, 31.32, 287.34°)
OKLaboklab(28.76% -0.0111 -0.0858)
OKLCHoklch(28.76% 0.087 262.6)
XYZxyz(2.6474, 2.3018, 8.8973)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122855 #553F12
analogous
#124955 #122855 #1E1255
triadic
#122855 #551228 #285512
tetradic
#122855 #551249 #553F12 #12551E
square
#122855 #551249 #553F12 #12551E
split-complementary
#122855 #551E12 #495512
monochromatic
#050C19 #071022 #122855 #1D4088 #2758BA

Accessibility & contrast

On white

14.38
#122855 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#122855 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122855
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122855#FFFFFF#000000##FFFFFF
##1228551.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2D57
Deuteranopia (green-blind)
#002754
Tritanopia (blue-blind)
#00333A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #122855;
/* rgb */ color: rgb(18, 40, 85);
/* oklch */ color: oklch(28.8% 0.087 262.6);
Tailwind
colors: {
  custom: {
    50: '#5a6185',
    500: '#122855',
    950: '#000000',
  },
}
SCSS
$custom: #122855;
$custom-light: #5a6185;
$custom-dark: #000000;
JSON
{
  "hex": "#122855",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 85
  },
  "hsl": {
    "h": 220.299,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28762,
    "c": 0.08654,
    "h": 262.6
  },
  "luminance": 0.02302
}

Semantic roles & 50–950 ramp

primary
#122855
secondary
#8E7135
accent
#B140E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #122855

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

Preview Lab → · Contrast checker → · Palette generator →

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