#122557#122557

#122557 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.2% C 0.094 H 265.2°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#122557
RGBrgb(18, 37, 87)
HSLhsl(223, 66%, 21%)
HSVhsv(223, 79%, 34%)
CMYKcmyk(79.3%, 57.5%, 0%, 65.9%)
CIE-LABlab(16.20, 12.44, -32.52)
CIE-LCHlch(16.20, 34.82, 290.93°)
OKLaboklab(28.21% -0.0079 -0.0936)
OKLCHoklch(28.21% 0.094 265.2)
XYZxyz(2.6307, 2.1396, 9.2893)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122557 #574412
analogous
#124757 #122557 #211257
triadic
#122557 #571225 #255712
tetradic
#122557 #571247 #574412 #125721
square
#122557 #571247 #574412 #125721
split-complementary
#122557 #572112 #475712
monochromatic
#050B19 #080F24 #122557 #1C3B8A #2750BC

Accessibility & contrast

On white

14.71
#122557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#122557 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122557
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122557#FFFFFF#000000##FFFFFF
##1225571.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032C59
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#00313A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #122557;
/* rgb */ color: rgb(18, 37, 87);
/* oklch */ color: oklch(28.2% 0.094 265.2);
Tailwind
colors: {
  custom: {
    50: '#5b5f87',
    500: '#122557',
    950: '#000000',
  },
}
SCSS
$custom: #122557;
$custom-light: #5b5f87;
$custom-dark: #000000;
JSON
{
  "hex": "#122557",
  "rgb": {
    "r": 18,
    "g": 37,
    "b": 87
  },
  "hsl": {
    "h": 223.478,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28208,
    "c": 0.09396,
    "h": 265.2
  },
  "luminance": 0.0214
}

Semantic roles & 50–950 ramp

primary
#122557
secondary
#907735
accent
#BA3FE9
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122557

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

Preview Lab → · Contrast checker → · Palette generator →

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