#122055#122055

#122055 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.9% C 0.098 H 267.9°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#122055
RGBrgb(18, 32, 85)
HSLhsl(227, 65%, 20%)
HSVhsv(227, 79%, 33%)
CMYKcmyk(78.8%, 62.4%, 0%, 66.7%)
CIE-LABlab(14.50, 15.34, -33.94)
CIE-LCHlch(14.50, 37.25, 294.32°)
OKLaboklab(26.87% -0.0036 -0.0979)
OKLCHoklch(26.87% 0.098 267.9)
XYZxyz(2.4051, 1.8172, 8.8166)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122055 #554712
analogous
#124155 #122055 #261255
triadic
#122055 #551220 #205512
tetradic
#122055 #551241 #554712 #125526
square
#122055 #551241 #554712 #125526
split-complementary
#122055 #552612 #415512
monochromatic
#050A19 #070D22 #122055 #1D3388 #2746BA

Accessibility & contrast

On white

15.40
#122055 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#122055 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122055
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122055#FFFFFF#000000##FFFFFF
##1220551.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #122055;
/* rgb */ color: rgb(18, 32, 85);
/* oklch */ color: oklch(26.9% 0.098 267.9);
Tailwind
colors: {
  custom: {
    50: '#5b5b85',
    500: '#122055',
    950: '#000000',
  },
}
SCSS
$custom: #122055;
$custom-light: #5b5b85;
$custom-dark: #000000;
JSON
{
  "hex": "#122055",
  "rgb": {
    "r": 18,
    "g": 32,
    "b": 85
  },
  "hsl": {
    "h": 227.463,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26869,
    "c": 0.09796,
    "h": 267.9
  },
  "luminance": 0.01817
}

Semantic roles & 50–950 ramp

primary
#122055
secondary
#8E7B35
accent
#C540E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122055

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

Preview Lab → · Contrast checker → · Palette generator →

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