#122A4E#122A4E

#122A4E is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.7% C 0.073 H 258.4°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#122A4E
RGBrgb(18, 42, 78)
HSLhsl(216, 63%, 19%)
HSVhsv(216, 77%, 31%)
CMYKcmyk(76.9%, 46.2%, 0%, 69.4%)
CIE-LABlab(17.15, 4.84, -24.93)
CIE-LCHlch(17.15, 25.39, 281.00°)
OKLaboklab(28.72% -0.0146 -0.0712)
OKLCHoklch(28.72% 0.073 258.4)
XYZxyz(2.4521, 2.3343, 7.5276)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A4E #4E3612
analogous
#12484E #122A4E #18124E
triadic
#122A4E #4E122A #2A4E12
tetradic
#122A4E #4E1248 #4E3612 #124E18
square
#122A4E #4E1248 #4E3612 #124E18
split-complementary
#122A4E #4E1812 #484E12
monochromatic
#060D19 #070F1C #122A4E #1D4580 #2960B1

Accessibility & contrast

On white

14.31
#122A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#122A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122A4E
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A4E#FFFFFF#000000##FFFFFF
##122A4E1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192D4F
Deuteranopia (green-blind)
#0F284D
Tritanopia (blue-blind)
#003238
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #122a4e;
/* rgb */ color: rgb(18, 42, 78);
/* oklch */ color: oklch(28.7% 0.073 258.4);
Tailwind
colors: {
  custom: {
    50: '#596380',
    500: '#122a4e',
    950: '#000000',
  },
}
SCSS
$custom: #122a4e;
$custom-light: #596380;
$custom-dark: #000000;
JSON
{
  "hex": "#122a4e",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 78
  },
  "hsl": {
    "h": 216,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28719,
    "c": 0.07265,
    "h": 258.4
  },
  "luminance": 0.02335
}

Semantic roles & 50–950 ramp

primary
#122A4E
secondary
#876635
accent
#A442E6
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #122A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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