#122054#122054

#122054 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.096 H 267.8°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#122054
RGBrgb(18, 32, 84)
HSLhsl(227, 65%, 20%)
HSVhsv(227, 79%, 33%)
CMYKcmyk(78.6%, 61.9%, 0%, 67.1%)
CIE-LABlab(14.41, 14.91, -33.41)
CIE-LCHlch(14.41, 36.59, 294.05°)
OKLaboklab(26.78% -0.0036 -0.0963)
OKLCHoklch(26.78% 0.096 267.8)
XYZxyz(2.3656, 1.8015, 8.6088)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122054 #544612
analogous
#124154 #122054 #251254
triadic
#122054 #541220 #205412
tetradic
#122054 #541241 #544612 #125425
square
#122054 #541241 #544612 #125425
split-complementary
#122054 #542512 #415412
monochromatic
#050A19 #070D22 #122054 #1D3386 #2846B9

Accessibility & contrast

On white

15.44
#122054 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122054
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122054#FFFFFF#000000##FFFFFF
##1220541.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002856
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#002D36
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #122054;
/* rgb */ color: rgb(18, 32, 84);
/* oklch */ color: oklch(26.8% 0.096 267.8);
Tailwind
colors: {
  custom: {
    50: '#5b5b85',
    500: '#122054',
    950: '#000000',
  },
}
SCSS
$custom: #122054;
$custom-light: #5b5b85;
$custom-dark: #000000;
JSON
{
  "hex": "#122054",
  "rgb": {
    "r": 18,
    "g": 32,
    "b": 84
  },
  "hsl": {
    "h": 227.273,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.26775,
    "c": 0.09639,
    "h": 267.8
  },
  "luminance": 0.01802
}

Semantic roles & 50–950 ramp

primary
#122054
secondary
#8D7A35
accent
#C440E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122054

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

Preview Lab → · Contrast checker → · Palette generator →

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