#122D5F#122D5F

#122D5F is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.8% C 0.095 H 261.4°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#122D5F
RGBrgb(18, 45, 95)
HSLhsl(219, 68%, 22%)
HSVhsv(219, 81%, 37%)
CMYKcmyk(81.1%, 52.6%, 0%, 62.7%)
CIE-LABlab(19.35, 9.94, -32.75)
CIE-LCHlch(19.35, 34.23, 286.88°)
OKLaboklab(30.81% -0.0142 -0.0941)
OKLCHoklch(30.81% 0.095 261.4)
XYZxyz(3.2527, 2.8312, 11.1993)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122D5F #5F4412
analogous
#12545F #122D5F #1D125F
triadic
#122D5F #5F122D #2D5F12
tetradic
#122D5F #5F1254 #5F4412 #125F1D
square
#122D5F #5F1254 #5F4412 #125F1D
split-complementary
#122D5F #5F1D12 #545F12
monochromatic
#050C1A #08152C #122D5F #1C4592 #255EC6

Accessibility & contrast

On white

13.41
#122D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122D5F
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122D5F#FFFFFF#000000##FFFFFF
##122D5F1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103361
Deuteranopia (green-blind)
#002C5E
Tritanopia (blue-blind)
#003941
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #122d5f;
/* rgb */ color: rgb(18, 45, 95);
/* oklch */ color: oklch(30.8% 0.095 261.4);
Tailwind
colors: {
  custom: {
    50: '#5d658d',
    500: '#122d5f',
    950: '#000000',
  },
}
SCSS
$custom: #122d5f;
$custom-light: #5d658d;
$custom-dark: #000000;
JSON
{
  "hex": "#122d5f",
  "rgb": {
    "r": 18,
    "g": 45,
    "b": 95
  },
  "hsl": {
    "h": 218.961,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30808,
    "c": 0.0952,
    "h": 261.4
  },
  "luminance": 0.02832
}

Semantic roles & 50–950 ramp

primary
#122D5F
secondary
#977536
accent
#AE3DEB
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05050C
muted
#797A7D

Preview Lab

Preview with #122D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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