#122F71#122F71

#122F71 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.8% C 0.120 H 263.4°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#122F71
RGBrgb(18, 47, 113)
HSLhsl(222, 73%, 26%)
HSVhsv(222, 84%, 44%)
CMYKcmyk(84.1%, 58.4%, 0%, 55.7%)
CIE-LABlab(21.41, 16.17, -41.14)
CIE-LCHlch(21.41, 44.20, 291.46°)
OKLaboklab(32.82% -0.0138 -0.1188)
OKLCHoklch(32.82% 0.12 263.4)
XYZxyz(4.2455, 3.3534, 16.0431)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122F71 #715412
analogous
#125E71 #122F71 #241271
triadic
#122F71 #71122F #2F7112
tetradic
#122F71 #71125E #715412 #127124
square
#122F71 #71125E #715412 #127124
split-complementary
#122F71 #712412 #5E7112
monochromatic
#040B1A #0A193C #122F71 #1A45A6 #235BDB

Accessibility & contrast

On white

12.57
#122F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#122F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122F71
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122F71#FFFFFF#000000##FFFFFF
##122F711.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003873
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #122f71;
/* rgb */ color: rgb(18, 47, 113);
/* oklch */ color: oklch(32.8% 0.120 263.4);
Tailwind
colors: {
  custom: {
    50: '#62679a',
    500: '#122f71',
    950: '#000000',
  },
}
SCSS
$custom: #122f71;
$custom-light: #62679a;
$custom-dark: #000000;
JSON
{
  "hex": "#122f71",
  "rgb": {
    "r": 18,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 221.684,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32823,
    "c": 0.11956,
    "h": 263.4
  },
  "luminance": 0.03354
}

Semantic roles & 50–950 ramp

primary
#122F71
secondary
#A88537
accent
#B739EF
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #122F71

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

Preview Lab → · Contrast checker → · Palette generator →

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