#122057#122057

#122057 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.1% C 0.101 H 268.0°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#122057
RGBrgb(18, 32, 87)
HSLhsl(228, 66%, 21%)
HSVhsv(228, 79%, 34%)
CMYKcmyk(79.3%, 63.2%, 0%, 65.9%)
CIE-LABlab(14.68, 16.19, -35.00)
CIE-LCHlch(14.68, 38.56, 294.82°)
OKLaboklab(27.06% -0.0035 -0.101)
OKLCHoklch(27.06% 0.101 268)
XYZxyz(2.4857, 1.8495, 9.2410)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122057 #574912
analogous
#124257 #122057 #261257
triadic
#122057 #571220 #205712
tetradic
#122057 #571242 #574912 #125726
square
#122057 #571242 #574912 #125726
split-complementary
#122057 #572612 #425712
monochromatic
#050919 #080D24 #122057 #1C338A #2745BC

Accessibility & contrast

On white

15.33
#122057 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#122057 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122057
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122057#FFFFFF#000000##FFFFFF
##1220571.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002859
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #122057;
/* rgb */ color: rgb(18, 32, 87);
/* oklch */ color: oklch(27.1% 0.101 268.0);
Tailwind
colors: {
  custom: {
    50: '#5c5b87',
    500: '#122057',
    950: '#000000',
  },
}
SCSS
$custom: #122057;
$custom-light: #5c5b87;
$custom-dark: #000000;
JSON
{
  "hex": "#122057",
  "rgb": {
    "r": 18,
    "g": 32,
    "b": 87
  },
  "hsl": {
    "h": 227.826,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27059,
    "c": 0.10105,
    "h": 268
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

primary
#122057
secondary
#907D35
accent
#C63FE9
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122057

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

Preview Lab → · Contrast checker → · Palette generator →

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