#122F81#122F81

#122F81 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.142 H 264.7°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#122F81
RGBrgb(18, 47, 129)
HSLhsl(224, 76%, 29%)
HSVhsv(224, 86%, 51%)
CMYKcmyk(86%, 63.6%, 0%, 49.4%)
CIE-LABlab(22.81, 22.84, -49.02)
CIE-LCHlch(22.81, 54.08, 294.98°)
OKLaboklab(34.32% -0.0131 -0.1419)
OKLCHoklch(34.32% 0.142 264.7)
XYZxyz(5.2270, 3.7460, 21.2122)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122F81 #816412
analogous
#126781 #122F81 #2D1281
triadic
#122F81 #81122F #2F8112
tetradic
#122F81 #811267 #816412 #12812D
square
#122F81 #811267 #816412 #12812D
split-complementary
#122F81 #812D12 #678112
monochromatic
#040A1B #0B1B4B #122F81 #1943B7 #2C5BE2

Accessibility & contrast

On white

12.00
#122F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#122F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122F81
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122F81#FFFFFF#000000##FFFFFF
##122F811.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #122f81;
/* rgb */ color: rgb(18, 47, 129);
/* oklch */ color: oklch(34.3% 0.142 264.7);
Tailwind
colors: {
  custom: {
    50: '#6667a6',
    500: '#122f81',
    950: '#000000',
  },
}
SCSS
$custom: #122f81;
$custom-light: #6667a6;
$custom-dark: #000000;
JSON
{
  "hex": "#122f81",
  "rgb": {
    "r": 18,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 224.324,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34315,
    "c": 0.14249,
    "h": 264.7
  },
  "luminance": 0.03747
}

Semantic roles & 50–950 ramp

primary
#122F81
secondary
#B79638
accent
#C136F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #122F81

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

Preview Lab → · Contrast checker → · Palette generator →

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