#122F58#122F58

#122F58 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 30.8% C 0.082 H 257.6°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#122F58
RGBrgb(18, 47, 88)
HSLhsl(215, 66%, 21%)
HSVhsv(215, 80%, 35%)
CMYKcmyk(79.5%, 46.6%, 0%, 65.5%)
CIE-LABlab(19.50, 5.47, -27.89)
CIE-LCHlch(19.50, 28.42, 281.10°)
OKLaboklab(30.76% -0.0176 -0.0798)
OKLCHoklch(30.76% 0.082 257.6)
XYZxyz(3.0268, 2.8659, 9.6243)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122F58 #583B12
analogous
#125258 #122F58 #181258
triadic
#122F58 #58122F #2F5812
tetradic
#122F58 #581252 #583B12 #125818
square
#122F58 #581252 #583B12 #125818
split-complementary
#122F58 #581812 #525812
monochromatic
#050E19 #081425 #122F58 #1C4A8B #2765BE

Accessibility & contrast

On white

13.35
#122F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#122F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122F58
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122F58#FFFFFF#000000##FFFFFF
##122F581.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B335A
Deuteranopia (green-blind)
#0E2C57
Tritanopia (blue-blind)
#00393F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #122f58;
/* rgb */ color: rgb(18, 47, 88);
/* oklch */ color: oklch(30.8% 0.082 257.6);
Tailwind
colors: {
  custom: {
    50: '#5b6787',
    500: '#122f58',
    950: '#000000',
  },
}
SCSS
$custom: #122f58;
$custom-light: #5b6787;
$custom-dark: #000000;
JSON
{
  "hex": "#122f58",
  "rgb": {
    "r": 18,
    "g": 47,
    "b": 88
  },
  "hsl": {
    "h": 215.143,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30757,
    "c": 0.08169,
    "h": 257.6
  },
  "luminance": 0.02866
}

Semantic roles & 50–950 ramp

primary
#122F58
secondary
#916B35
accent
#A23FE9
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04060B
muted
#797A7C

Preview Lab

Preview with #122F58

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

Preview Lab → · Contrast checker → · Palette generator →

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