#122F5B#122F5B

#122F5B is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.0% C 0.086 H 258.7°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#122F5B
RGBrgb(18, 47, 91)
HSLhsl(216, 67%, 21%)
HSVhsv(216, 80%, 36%)
CMYKcmyk(80.2%, 48.4%, 0%, 64.3%)
CIE-LABlab(19.71, 6.76, -29.54)
CIE-LCHlch(19.71, 30.31, 282.89°)
OKLaboklab(30.99% -0.0169 -0.0846)
OKLCHoklch(30.99% 0.086 258.7)
XYZxyz(3.1536, 2.9166, 10.2923)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122F5B #5B3E12
analogous
#12545B #122F5B #1A125B
triadic
#122F5B #5B122F #2F5B12
tetradic
#122F5B #5B1254 #5B3E12 #125B1A
square
#122F5B #5B1254 #5B3E12 #125B1A
split-complementary
#122F5B #5B1A12 #545B12
monochromatic
#050D1A #081528 #122F5B #1C498E #2664C1

Accessibility & contrast

On white

13.26
#122F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#122F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122F5B
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122F5B#FFFFFF#000000##FFFFFF
##122F5B1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18335D
Deuteranopia (green-blind)
#092D5A
Tritanopia (blue-blind)
#003940
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #122f5b;
/* rgb */ color: rgb(18, 47, 91);
/* oklch */ color: oklch(31.0% 0.086 258.7);
Tailwind
colors: {
  custom: {
    50: '#5c678a',
    500: '#122f5b',
    950: '#000000',
  },
}
SCSS
$custom: #122f5b;
$custom-light: #5c678a;
$custom-dark: #000000;
JSON
{
  "hex": "#122f5b",
  "rgb": {
    "r": 18,
    "g": 47,
    "b": 91
  },
  "hsl": {
    "h": 216.164,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30985,
    "c": 0.08631,
    "h": 258.7
  },
  "luminance": 0.02917
}

Semantic roles & 50–950 ramp

primary
#122F5B
secondary
#936E35
accent
#A63EEA
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060B
muted
#797A7C

Preview Lab

Preview with #122F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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