#122C5F#122C5F

#122C5F is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.6% C 0.097 H 262.1°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#122C5F
RGBrgb(18, 44, 95)
HSLhsl(220, 68%, 22%)
HSVhsv(220, 81%, 37%)
CMYKcmyk(81.1%, 53.7%, 0%, 62.7%)
CIE-LABlab(19.04, 10.68, -33.26)
CIE-LCHlch(19.04, 34.93, 287.80°)
OKLaboklab(30.57% -0.0133 -0.0956)
OKLCHoklch(30.57% 0.097 262.1)
XYZxyz(3.2150, 2.7558, 11.1867)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122C5F #5F4512
analogous
#12535F #122C5F #1E125F
triadic
#122C5F #5F122C #2C5F12
tetradic
#122C5F #5F1253 #5F4512 #125F1E
square
#122C5F #5F1253 #5F4512 #125F1E
split-complementary
#122C5F #5F1E12 #535F12
monochromatic
#050C1A #08142C #122C5F #1C4492 #255CC6

Accessibility & contrast

On white

13.54
#122C5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#122C5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122C5F
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122C5F#FFFFFF#000000##FFFFFF
##122C5F1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3261
Deuteranopia (green-blind)
#002B5E
Tritanopia (blue-blind)
#003841
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #122c5f;
/* rgb */ color: rgb(18, 44, 95);
/* oklch */ color: oklch(30.6% 0.097 262.1);
Tailwind
colors: {
  custom: {
    50: '#5d648d',
    500: '#122c5f',
    950: '#000000',
  },
}
SCSS
$custom: #122c5f;
$custom-light: #5d648d;
$custom-dark: #000000;
JSON
{
  "hex": "#122c5f",
  "rgb": {
    "r": 18,
    "g": 44,
    "b": 95
  },
  "hsl": {
    "h": 219.74,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30566,
    "c": 0.09658,
    "h": 262.1
  },
  "luminance": 0.02756
}

Semantic roles & 50–950 ramp

primary
#122C5F
secondary
#977636
accent
#B03DEB
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #122C5F

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

Preview Lab → · Contrast checker → · Palette generator →

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