#122457#122457

#122457 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.0% C 0.095 H 265.8°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#122457
RGBrgb(18, 36, 87)
HSLhsl(224, 66%, 21%)
HSVhsv(224, 79%, 34%)
CMYKcmyk(79.3%, 58.6%, 0%, 65.9%)
CIE-LABlab(15.89, 13.19, -33.03)
CIE-LCHlch(15.89, 35.56, 291.77°)
OKLaboklab(27.97% -0.007 -0.0951)
OKLCHoklch(27.97% 0.095 265.8)
XYZxyz(2.6000, 2.0782, 9.2791)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122457 #574512
analogous
#124657 #122457 #221257
triadic
#122457 #571224 #245712
tetradic
#122457 #571246 #574512 #125722
square
#122457 #571246 #574512 #125722
split-complementary
#122457 #572212 #465712
monochromatic
#050A19 #080F24 #122457 #1C398A #274EBC

Accessibility & contrast

On white

14.83
#122457 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#122457 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122457
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122457#FFFFFF#000000##FFFFFF
##1224571.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B59
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#003039
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #122457;
/* rgb */ color: rgb(18, 36, 87);
/* oklch */ color: oklch(28.0% 0.095 265.8);
Tailwind
colors: {
  custom: {
    50: '#5b5e87',
    500: '#122457',
    950: '#000000',
  },
}
SCSS
$custom: #122457;
$custom-light: #5b5e87;
$custom-dark: #000000;
JSON
{
  "hex": "#122457",
  "rgb": {
    "r": 18,
    "g": 36,
    "b": 87
  },
  "hsl": {
    "h": 224.348,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27972,
    "c": 0.09538,
    "h": 265.8
  },
  "luminance": 0.02078
}

Semantic roles & 50–950 ramp

primary
#122457
secondary
#907835
accent
#BC3FE9
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122457

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

Preview Lab → · Contrast checker → · Palette generator →

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