#122254#122254

#122254 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.094 H 266.7°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#122254
RGBrgb(18, 34, 84)
HSLhsl(225, 65%, 20%)
HSVhsv(225, 79%, 33%)
CMYKcmyk(78.6%, 59.5%, 0%, 67.1%)
CIE-LABlab(15.02, 13.41, -32.42)
CIE-LCHlch(15.02, 35.08, 292.47°)
OKLaboklab(27.24% -0.0054 -0.0934)
OKLCHoklch(27.24% 0.094 266.7)
XYZxyz(2.4212, 1.9125, 8.6273)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122254 #544412
analogous
#124354 #122254 #231254
triadic
#122254 #541222 #225412
tetradic
#122254 #541243 #544412 #125423
square
#122254 #541243 #544412 #125423
split-complementary
#122254 #542312 #435412
monochromatic
#050A19 #070E22 #122254 #1D3686 #284BB9

Accessibility & contrast

On white

15.19
#122254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#122254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122254
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122254#FFFFFF#000000##FFFFFF
##1222541.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #122254;
/* rgb */ color: rgb(18, 34, 84);
/* oklch */ color: oklch(27.2% 0.094 266.7);
Tailwind
colors: {
  custom: {
    50: '#5b5c85',
    500: '#122254',
    950: '#000000',
  },
}
SCSS
$custom: #122254;
$custom-light: #5b5c85;
$custom-dark: #000000;
JSON
{
  "hex": "#122254",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 84
  },
  "hsl": {
    "h": 225.455,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.27235,
    "c": 0.09352,
    "h": 266.7
  },
  "luminance": 0.01913
}

Semantic roles & 50–950 ramp

primary
#122254
secondary
#8D7835
accent
#BF40E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122254

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

Preview Lab → · Contrast checker → · Palette generator →

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