#122C7E#122C7E

#122C7E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.142 H 265.4°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#122C7E
RGBrgb(18, 44, 126)
HSLhsl(226, 75%, 28%)
HSVhsv(226, 86%, 49%)
CMYKcmyk(85.7%, 65.1%, 0%, 50.6%)
CIE-LABlab(21.71, 23.73, -48.93)
CIE-LCHlch(21.71, 54.38, 295.87°)
OKLaboklab(33.41% -0.0114 -0.1417)
OKLCHoklch(33.41% 0.142 265.4)
XYZxyz(4.9147, 3.4357, 20.1387)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122C7E #7E6412
analogous
#12627E #122C7E #2E127E
triadic
#122C7E #7E122C #2C7E12
tetradic
#122C7E #7E1262 #7E6412 #127E2E
square
#122C7E #7E1262 #7E6412 #127E2E
split-complementary
#122C7E #7E2E12 #627E12
monochromatic
#04091B #0A1948 #122C7E #1A3FB4 #2A56E1

Accessibility & contrast

On white

12.45
#122C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#122C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122C7E
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122C7E#FFFFFF#000000##FFFFFF
##122C7E1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #122c7e;
/* rgb */ color: rgb(18, 44, 126);
/* oklch */ color: oklch(33.4% 0.142 265.4);
Tailwind
colors: {
  custom: {
    50: '#6664a4',
    500: '#122c7e',
    950: '#000000',
  },
}
SCSS
$custom: #122c7e;
$custom-light: #6664a4;
$custom-dark: #000000;
JSON
{
  "hex": "#122c7e",
  "rgb": {
    "r": 18,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 225.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33411,
    "c": 0.14213,
    "h": 265.4
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#122C7E
secondary
#B49638
accent
#C436F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #122C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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