#122F5A#122F5A

#122F5A is a dark, moderate blue. Relative luminance 0.029; OKLCH L 30.9% C 0.085 H 258.4°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#122F5A
RGBrgb(18, 47, 90)
HSLhsl(216, 67%, 21%)
HSVhsv(216, 80%, 35%)
CMYKcmyk(80%, 47.8%, 0%, 64.7%)
CIE-LABlab(19.64, 6.33, -28.99)
CIE-LCHlch(19.64, 29.68, 282.32°)
OKLaboklab(30.91% -0.0171 -0.083)
OKLCHoklch(30.91% 0.085 258.4)
XYZxyz(3.1108, 2.8995, 10.0666)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122F5A #5A3D12
analogous
#12535A #122F5A #19125A
triadic
#122F5A #5A122F #2F5A12
tetradic
#122F5A #5A1253 #5A3D12 #125A19
square
#122F5A #5A1253 #5A3D12 #125A19
split-complementary
#122F5A #5A1912 #535A12
monochromatic
#050D1A #081427 #122F5A #1C4A8D #2664C0

Accessibility & contrast

On white

13.29
#122F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122F5A
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122F5A#FFFFFF#000000##FFFFFF
##122F5A1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19335C
Deuteranopia (green-blind)
#0B2C59
Tritanopia (blue-blind)
#003940
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #122f5a;
/* rgb */ color: rgb(18, 47, 90);
/* oklch */ color: oklch(30.9% 0.085 258.4);
Tailwind
colors: {
  custom: {
    50: '#5b6789',
    500: '#122f5a',
    950: '#000000',
  },
}
SCSS
$custom: #122f5a;
$custom-light: #5b6789;
$custom-dark: #000000;
JSON
{
  "hex": "#122f5a",
  "rgb": {
    "r": 18,
    "g": 47,
    "b": 90
  },
  "hsl": {
    "h": 215.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.30908,
    "c": 0.08477,
    "h": 258.4
  },
  "luminance": 0.029
}

Semantic roles & 50–950 ramp

primary
#122F5A
secondary
#936D35
accent
#A53EEA
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#04060B
muted
#797A7C

Preview Lab

Preview with #122F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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