#122A4C#122A4C

#122A4C is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.6% C 0.069 H 257.5°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#122A4C
RGBrgb(18, 42, 76)
HSLhsl(215, 62%, 18%)
HSVhsv(215, 76%, 30%)
CMYKcmyk(76.3%, 44.7%, 0%, 70.2%)
CIE-LABlab(17.02, 3.99, -23.78)
CIE-LCHlch(17.02, 24.11, 279.53°)
OKLaboklab(28.57% -0.0151 -0.0678)
OKLCHoklch(28.57% 0.069 257.5)
XYZxyz(2.3815, 2.3061, 7.1557)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122A4C #4C3412
analogous
#12474C #122A4C #17124C
triadic
#122A4C #4C122A #2A4C12
tetradic
#122A4C #4C1247 #4C3412 #124C17
square
#122A4C #4C1247 #4C3412 #124C17
split-complementary
#122A4C #4C1712 #474C12
monochromatic
#060E19 #060F1B #122A4C #1E457D #2961AF

Accessibility & contrast

On white

14.37
#122A4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#122A4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122A4C
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122A4C#FFFFFF#000000##FFFFFF
##122A4C1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2D4D
Deuteranopia (green-blind)
#11274B
Tritanopia (blue-blind)
#003237
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #122a4c;
/* rgb */ color: rgb(18, 42, 76);
/* oklch */ color: oklch(28.6% 0.069 257.5);
Tailwind
colors: {
  custom: {
    50: '#58637e',
    500: '#122a4c',
    950: '#000000',
  },
}
SCSS
$custom: #122a4c;
$custom-light: #58637e;
$custom-dark: #000000;
JSON
{
  "hex": "#122a4c",
  "rgb": {
    "r": 18,
    "g": 42,
    "b": 76
  },
  "hsl": {
    "h": 215.172,
    "s": 61.702,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28571,
    "c": 0.06948,
    "h": 257.5
  },
  "luminance": 0.02306
}

Semantic roles & 50–950 ramp

primary
#122A4C
secondary
#856435
accent
#A243E5
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #122A4C

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

Preview Lab → · Contrast checker → · Palette generator →

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