#122F79#122F79

#122F79 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.131 H 264.2°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#122F79
RGBrgb(18, 47, 121)
HSLhsl(223, 74%, 27%)
HSVhsv(223, 85%, 47%)
CMYKcmyk(85.1%, 61.2%, 0%, 52.5%)
CIE-LABlab(22.09, 19.53, -45.13)
CIE-LCHlch(22.09, 49.18, 293.40°)
OKLaboklab(33.56% -0.0133 -0.1305)
OKLCHoklch(33.56% 0.131 264.2)
XYZxyz(4.7159, 3.5415, 18.5205)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122F79 #795C12
analogous
#126379 #122F79 #291279
triadic
#122F79 #79122F #2F7912
tetradic
#122F79 #791263 #795C12 #127929
square
#122F79 #791263 #795C12 #127929
split-complementary
#122F79 #792912 #637912
monochromatic
#040A1B #0A1A44 #122F79 #1A44AE #275ADF

Accessibility & contrast

On white

12.29
#122F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#122F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122F79
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122F79#FFFFFF#000000##FFFFFF
##122F791.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7B
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #122f79;
/* rgb */ color: rgb(18, 47, 121);
/* oklch */ color: oklch(33.6% 0.131 264.2);
Tailwind
colors: {
  custom: {
    50: '#6467a0',
    500: '#122f79',
    950: '#000000',
  },
}
SCSS
$custom: #122f79;
$custom-light: #6467a0;
$custom-dark: #000000;
JSON
{
  "hex": "#122f79",
  "rgb": {
    "r": 18,
    "g": 47,
    "b": 121
  },
  "hsl": {
    "h": 223.107,
    "s": 74.101,
    "l": 27.255
  },
  "oklch": {
    "l": 0.33555,
    "c": 0.13117,
    "h": 264.2
  },
  "luminance": 0.03542
}

Semantic roles & 50–950 ramp

primary
#122F79
secondary
#AF8E38
accent
#BC37F1
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060F
muted
#7A7A7E

Preview Lab

Preview with #122F79

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

Preview Lab → · Contrast checker → · Palette generator →

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