#122555#122555

#122555 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.0% C 0.091 H 264.8°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#122555
RGBrgb(18, 37, 85)
HSLhsl(223, 65%, 20%)
HSVhsv(223, 79%, 33%)
CMYKcmyk(78.8%, 56.5%, 0%, 66.7%)
CIE-LABlab(16.04, 11.58, -31.44)
CIE-LCHlch(16.04, 33.51, 290.22°)
OKLaboklab(28.03% -0.0082 -0.0904)
OKLCHoklch(28.03% 0.091 264.8)
XYZxyz(2.5501, 2.1073, 8.8649)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122555 #554212
analogous
#124655 #122555 #201255
triadic
#122555 #551225 #255512
tetradic
#122555 #551246 #554212 #125520
square
#122555 #551246 #554212 #125520
split-complementary
#122555 #552012 #465512
monochromatic
#050B19 #070F22 #122555 #1D3B88 #2751BA

Accessibility & contrast

On white

14.77
#122555 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#122555 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122555
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122555#FFFFFF#000000##FFFFFF
##1225551.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062B57
Deuteranopia (green-blind)
#002554
Tritanopia (blue-blind)
#003139
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #122555;
/* rgb */ color: rgb(18, 37, 85);
/* oklch */ color: oklch(28.0% 0.091 264.8);
Tailwind
colors: {
  custom: {
    50: '#5b5f85',
    500: '#122555',
    950: '#000000',
  },
}
SCSS
$custom: #122555;
$custom-light: #5b5f85;
$custom-dark: #000000;
JSON
{
  "hex": "#122555",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 85
  },
  "hsl": {
    "h": 222.985,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28033,
    "c": 0.0908,
    "h": 264.8
  },
  "luminance": 0.02108
}

Semantic roles & 50–950 ramp

primary
#122555
secondary
#8E7535
accent
#B840E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122555

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

Preview Lab → · Contrast checker → · Palette generator →

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