#122959#122959

#122959 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.3% C 0.091 H 262.8°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#122959
RGBrgb(18, 41, 89)
HSLhsl(221, 66%, 21%)
HSVhsv(221, 80%, 35%)
CMYKcmyk(79.8%, 53.9%, 0%, 65.1%)
CIE-LABlab(17.62, 10.31, -31.56)
CIE-LCHlch(17.62, 33.21, 288.09°)
OKLaboklab(29.34% -0.0114 -0.0907)
OKLCHoklch(29.34% 0.091 262.8)
XYZxyz(2.8449, 2.4354, 9.7694)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122959 #594212
analogous
#124C59 #122959 #1E1259
triadic
#122959 #591229 #295912
tetradic
#122959 #59124C #594212 #12591E
square
#122959 #59124C #594212 #12591E
split-complementary
#122959 #591E12 #4C5912
monochromatic
#050C19 #081226 #122959 #1C408C #2758BF

Accessibility & contrast

On white

14.12
#122959 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#122959 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122959
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122959#FFFFFF#000000##FFFFFF
##1229591.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2F5B
Deuteranopia (green-blind)
#002858
Tritanopia (blue-blind)
#00343C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #122959;
/* rgb */ color: rgb(18, 41, 89);
/* oklch */ color: oklch(29.3% 0.091 262.8);
Tailwind
colors: {
  custom: {
    50: '#5b6288',
    500: '#122959',
    950: '#000000',
  },
}
SCSS
$custom: #122959;
$custom-light: #5b6288;
$custom-dark: #000000;
JSON
{
  "hex": "#122959",
  "rgb": {
    "r": 18,
    "g": 41,
    "b": 89
  },
  "hsl": {
    "h": 220.563,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29339,
    "c": 0.09144,
    "h": 262.8
  },
  "luminance": 0.02436
}

Semantic roles & 50–950 ramp

primary
#122959
secondary
#927435
accent
#B23FE9
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#04050B
muted
#79797C

Preview Lab

Preview with #122959

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

Preview Lab → · Contrast checker → · Palette generator →

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