#122F7F#122F7F

#122F7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.140 H 264.6°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#122F7F
RGBrgb(18, 47, 127)
HSLhsl(224, 75%, 28%)
HSVhsv(224, 86%, 50%)
CMYKcmyk(85.8%, 63%, 0%, 50.2%)
CIE-LABlab(22.63, 22.02, -48.06)
CIE-LCHlch(22.63, 52.86, 294.62°)
OKLaboklab(34.12% -0.0131 -0.1391)
OKLCHoklch(34.12% 0.14 264.6)
XYZxyz(5.0954, 3.6933, 20.5189)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122F7F #7F6212
analogous
#12657F #122F7F #2C127F
triadic
#122F7F #7F122F #2F7F12
tetradic
#122F7F #7F1265 #7F6212 #127F2C
square
#122F7F #7F1265 #7F6212 #127F2C
split-complementary
#122F7F #7F2C12 #657F12
monochromatic
#040A1B #0A1B49 #122F7F #1A43B5 #2B5BE1

Accessibility & contrast

On white

12.08
#122F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#122F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122F7F
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122F7F#FFFFFF#000000##FFFFFF
##122F7F1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #122f7f;
/* rgb */ color: rgb(18, 47, 127);
/* oklch */ color: oklch(34.1% 0.140 264.6);
Tailwind
colors: {
  custom: {
    50: '#6667a5',
    500: '#122f7f',
    950: '#000000',
  },
}
SCSS
$custom: #122f7f;
$custom-light: #6667a5;
$custom-dark: #000000;
JSON
{
  "hex": "#122f7f",
  "rgb": {
    "r": 18,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 224.037,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34122,
    "c": 0.13969,
    "h": 264.6
  },
  "luminance": 0.03694
}

Semantic roles & 50–950 ramp

primary
#122F7F
secondary
#B59438
accent
#C036F2
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #122F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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