#122D58#122D58

#122D58 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.2% C 0.084 H 259.4°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#122D58
RGBrgb(18, 45, 88)
HSLhsl(217, 66%, 21%)
HSVhsv(217, 80%, 35%)
CMYKcmyk(79.5%, 48.9%, 0%, 65.5%)
CIE-LABlab(18.84, 6.93, -28.94)
CIE-LCHlch(18.84, 29.76, 283.47°)
OKLaboklab(30.25% -0.0155 -0.0829)
OKLCHoklch(30.25% 0.084 259.4)
XYZxyz(2.9487, 2.7096, 9.5982)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122D58 #583D12
analogous
#125058 #122D58 #1A1258
triadic
#122D58 #58122D #2D5812
tetradic
#122D58 #581250 #583D12 #12581A
square
#122D58 #581250 #583D12 #12581A
split-complementary
#122D58 #581A12 #505812
monochromatic
#050D19 #081325 #122D58 #1C478B #2761BE

Accessibility & contrast

On white

13.62
#122D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#122D58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122D58
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122D58#FFFFFF#000000##FFFFFF
##122D581.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17315A
Deuteranopia (green-blind)
#082B57
Tritanopia (blue-blind)
#00373E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #122d58;
/* rgb */ color: rgb(18, 45, 88);
/* oklch */ color: oklch(30.2% 0.084 259.4);
Tailwind
colors: {
  custom: {
    50: '#5b6587',
    500: '#122d58',
    950: '#000000',
  },
}
SCSS
$custom: #122d58;
$custom-light: #5b6587;
$custom-dark: #000000;
JSON
{
  "hex": "#122d58",
  "rgb": {
    "r": 18,
    "g": 45,
    "b": 88
  },
  "hsl": {
    "h": 216.857,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30249,
    "c": 0.08435,
    "h": 259.4
  },
  "luminance": 0.0271
}

Semantic roles & 50–950 ramp

primary
#122D58
secondary
#916D35
accent
#A73FE9
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050B
muted
#797A7C

Preview Lab

Preview with #122D58

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

Preview Lab → · Contrast checker → · Palette generator →

#122D58 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva