#122255#122255

#122255 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.3% C 0.095 H 266.8°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#122255
RGBrgb(18, 34, 85)
HSLhsl(226, 65%, 20%)
HSVhsv(226, 79%, 33%)
CMYKcmyk(78.8%, 60%, 0%, 66.7%)
CIE-LABlab(15.11, 13.83, -32.95)
CIE-LCHlch(15.11, 35.74, 292.77°)
OKLaboklab(27.33% -0.0054 -0.0949)
OKLCHoklch(27.33% 0.095 266.8)
XYZxyz(2.4606, 1.9283, 8.8351)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122255 #554512
analogous
#124355 #122255 #241255
triadic
#122255 #551222 #225512
tetradic
#122255 #551243 #554512 #125524
square
#122255 #551243 #554512 #125524
split-complementary
#122255 #552412 #435512
monochromatic
#050A19 #070E22 #122255 #1D3688 #274ABA

Accessibility & contrast

On white

15.15
#122255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#122255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122255
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122255#FFFFFF#000000##FFFFFF
##1222551.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#002354
Tritanopia (blue-blind)
#002E37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #122255;
/* rgb */ color: rgb(18, 34, 85);
/* oklch */ color: oklch(27.3% 0.095 266.8);
Tailwind
colors: {
  custom: {
    50: '#5b5c85',
    500: '#122255',
    950: '#000000',
  },
}
SCSS
$custom: #122255;
$custom-light: #5b5c85;
$custom-dark: #000000;
JSON
{
  "hex": "#122255",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 225.672,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.27326,
    "c": 0.09509,
    "h": 266.8
  },
  "luminance": 0.01929
}

Semantic roles & 50–950 ramp

primary
#122255
secondary
#8E7935
accent
#C040E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122255

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

Preview Lab → · Contrast checker → · Palette generator →

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