#122F72#122F72

#122F72 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 32.9% C 0.121 H 263.5°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#122F72
RGBrgb(18, 47, 114)
HSLhsl(222, 73%, 26%)
HSVhsv(222, 84%, 45%)
CMYKcmyk(84.2%, 58.8%, 0%, 55.3%)
CIE-LABlab(21.49, 16.59, -41.65)
CIE-LCHlch(21.49, 44.83, 291.72°)
OKLaboklab(32.91% -0.0137 -0.1202)
OKLCHoklch(32.91% 0.121 263.5)
XYZxyz(4.3021, 3.3760, 16.3412)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122F72 #725512
analogous
#125F72 #122F72 #251272
triadic
#122F72 #72122F #2F7212
tetradic
#122F72 #72125F #725512 #127225
square
#122F72 #72125F #725512 #127225
split-complementary
#122F72 #722512 #5F7212
monochromatic
#040B1A #0A193D #122F72 #1A45A7 #235BDC

Accessibility & contrast

On white

12.53
#122F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#122F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122F72
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122F72#FFFFFF#000000##FFFFFF
##122F721.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#00404B
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #122f72;
/* rgb */ color: rgb(18, 47, 114);
/* oklch */ color: oklch(32.9% 0.121 263.5);
Tailwind
colors: {
  custom: {
    50: '#62679b',
    500: '#122f72',
    950: '#000000',
  },
}
SCSS
$custom: #122f72;
$custom-light: #62679b;
$custom-dark: #000000;
JSON
{
  "hex": "#122f72",
  "rgb": {
    "r": 18,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 221.875,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32913,
    "c": 0.12103,
    "h": 263.5
  },
  "luminance": 0.03377
}

Semantic roles & 50–950 ramp

primary
#122F72
secondary
#A98637
accent
#B838EF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #122F72

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

Preview Lab → · Contrast checker → · Palette generator →

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