#122F5F#122F5F

#122F5F is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.3% C 0.092 H 260.0°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#122F5F
RGBrgb(18, 47, 95)
HSLhsl(217, 68%, 22%)
HSVhsv(217, 81%, 37%)
CMYKcmyk(81.1%, 50.5%, 0%, 62.7%)
CIE-LABlab(19.99, 8.48, -31.72)
CIE-LCHlch(19.99, 32.83, 284.96°)
OKLaboklab(31.3% -0.0161 -0.0911)
OKLCHoklch(31.3% 0.092 260)
XYZxyz(3.3308, 2.9875, 11.2254)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122F5F #5F4212
analogous
#12565F #122F5F #1C125F
triadic
#122F5F #5F122F #2F5F12
tetradic
#122F5F #5F1256 #5F4212 #125F1C
square
#122F5F #5F1256 #5F4212 #125F1C
split-complementary
#122F5F #5F1C12 #565F12
monochromatic
#050D1A #08162C #122F5F #1C4892 #2562C6

Accessibility & contrast

On white

13.14
#122F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#122F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122F5F
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122F5F#FFFFFF#000000##FFFFFF
##122F5F1.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153461
Deuteranopia (green-blind)
#022D5E
Tritanopia (blue-blind)
#003A42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #122f5f;
/* rgb */ color: rgb(18, 47, 95);
/* oklch */ color: oklch(31.3% 0.092 260.0);
Tailwind
colors: {
  custom: {
    50: '#5d678d',
    500: '#122f5f',
    950: '#000000',
  },
}
SCSS
$custom: #122f5f;
$custom-light: #5d678d;
$custom-dark: #000000;
JSON
{
  "hex": "#122f5f",
  "rgb": {
    "r": 18,
    "g": 47,
    "b": 95
  },
  "hsl": {
    "h": 217.403,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31298,
    "c": 0.09248,
    "h": 260
  },
  "luminance": 0.02988
}

Semantic roles & 50–950 ramp

primary
#122F5F
secondary
#977236
accent
#A93DEB
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #122F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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