#122C7F#122C7F

#122C7F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.5% C 0.144 H 265.4°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#122C7F
RGBrgb(18, 44, 127)
HSLhsl(226, 75%, 28%)
HSVhsv(226, 86%, 50%)
CMYKcmyk(85.8%, 65.4%, 0%, 50.2%)
CIE-LABlab(21.81, 24.14, -49.41)
CIE-LCHlch(21.81, 54.99, 296.03°)
OKLaboklab(33.51% -0.0114 -0.1431)
OKLCHoklch(33.51% 0.144 265.4)
XYZxyz(4.9795, 3.4617, 20.4803)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122C7F #7F6512
analogous
#12627F #122C7F #2E127F
triadic
#122C7F #7F122C #2C7F12
tetradic
#122C7F #7F1262 #7F6512 #127F2E
square
#122C7F #7F1262 #7F6512 #127F2E
split-complementary
#122C7F #7F2E12 #627F12
monochromatic
#04091B #0A1949 #122C7F #1A3FB5 #2B56E1

Accessibility & contrast

On white

12.41
#122C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122C7F
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122C7F#FFFFFF#000000##FFFFFF
##122C7F1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #122c7f;
/* rgb */ color: rgb(18, 44, 127);
/* oklch */ color: oklch(33.5% 0.144 265.4);
Tailwind
colors: {
  custom: {
    50: '#6664a5',
    500: '#122c7f',
    950: '#000000',
  },
}
SCSS
$custom: #122c7f;
$custom-light: #6664a5;
$custom-dark: #000000;
JSON
{
  "hex": "#122c7f",
  "rgb": {
    "r": 18,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 225.688,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3351,
    "c": 0.14352,
    "h": 265.4
  },
  "luminance": 0.03462
}

Semantic roles & 50–950 ramp

primary
#122C7F
secondary
#B59738
accent
#C536F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #122C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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