#122458#122458

#122458 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.1% C 0.097 H 265.9°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).

Color values

HEX#122458
RGBrgb(18, 36, 88)
HSLhsl(225, 66%, 21%)
HSVhsv(225, 80%, 35%)
CMYKcmyk(79.5%, 59.1%, 0%, 65.5%)
CIE-LABlab(15.98, 13.62, -33.56)
CIE-LCHlch(15.98, 36.22, 292.09°)
OKLaboklab(28.06% -0.0069 -0.0967)
OKLCHoklch(28.06% 0.097 265.9)
XYZxyz(2.6412, 2.0946, 9.4957)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122458 #584612
analogous
#124758 #122458 #231258
triadic
#122458 #581224 #245812
tetradic
#122458 #581247 #584612 #125823
square
#122458 #581247 #584612 #125823
split-complementary
#122458 #582312 #475812
monochromatic
#050A19 #080F25 #122458 #1C398B #274EBE

Accessibility & contrast

On white

14.80
#122458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122458
14.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122458#FFFFFF#000000##FFFFFF
##1224581.0014.801.4214.80
#FFFFFF14.801.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#00313A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #122458;
/* rgb */ color: rgb(18, 36, 88);
/* oklch */ color: oklch(28.1% 0.097 265.9);
Tailwind
colors: {
  custom: {
    50: '#5c5e88',
    500: '#122458',
    950: '#000000',
  },
}
SCSS
$custom: #122458;
$custom-light: #5c5e88;
$custom-dark: #000000;
JSON
{
  "hex": "#122458",
  "rgb": {
    "r": 18,
    "g": 36,
    "b": 88
  },
  "hsl": {
    "h": 224.571,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28062,
    "c": 0.09694,
    "h": 265.9
  },
  "luminance": 0.02095
}

Semantic roles & 50–950 ramp

primary
#122458
secondary
#917935
accent
#BD3FE9
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040B
muted
#79797C

Preview Lab

Preview with #122458

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

Preview Lab → · Contrast checker → · Palette generator →

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