#122155#122155

#122155 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.1% C 0.097 H 267.3°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#122155
RGBrgb(18, 33, 85)
HSLhsl(227, 65%, 20%)
HSVhsv(227, 79%, 33%)
CMYKcmyk(78.8%, 61.2%, 0%, 66.7%)
CIE-LABlab(14.80, 14.59, -33.45)
CIE-LCHlch(14.80, 36.49, 293.56°)
OKLaboklab(27.1% -0.0045 -0.0964)
OKLCHoklch(27.1% 0.097 267.3)
XYZxyz(2.4324, 1.8719, 8.8257)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122155 #554612
analogous
#124355 #122155 #241255
triadic
#122155 #551221 #215512
tetradic
#122155 #551243 #554612 #125524
square
#122155 #551243 #554612 #125524
split-complementary
#122155 #552412 #435512
monochromatic
#050A19 #070D22 #122155 #1D3588 #2748BA

Accessibility & contrast

On white

15.28
#122155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#122155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122155
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122155#FFFFFF#000000##FFFFFF
##1221551.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002857
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#002E37
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #122155;
/* rgb */ color: rgb(18, 33, 85);
/* oklch */ color: oklch(27.1% 0.097 267.3);
Tailwind
colors: {
  custom: {
    50: '#5b5b85',
    500: '#122155',
    950: '#000000',
  },
}
SCSS
$custom: #122155;
$custom-light: #5b5b85;
$custom-dark: #000000;
JSON
{
  "hex": "#122155",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 226.567,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27096,
    "c": 0.09652,
    "h": 267.3
  },
  "luminance": 0.01872
}

Semantic roles & 50–950 ramp

primary
#122155
secondary
#8E7A35
accent
#C240E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122155

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

Preview Lab → · Contrast checker → · Palette generator →

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