#122F5C#122F5C

#122F5C is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.1% C 0.088 H 259.0°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#122F5C
RGBrgb(18, 47, 92)
HSLhsl(216, 67%, 22%)
HSVhsv(216, 80%, 36%)
CMYKcmyk(80.4%, 48.9%, 0%, 63.9%)
CIE-LABlab(19.78, 7.19, -30.09)
CIE-LCHlch(19.78, 30.94, 283.43°)
OKLaboklab(31.06% -0.0167 -0.0863)
OKLCHoklch(31.06% 0.088 259)
XYZxyz(3.1970, 2.9340, 10.5210)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122F5C #5C3F12
analogous
#12545C #122F5C #1A125C
triadic
#122F5C #5C122F #2F5C12
tetradic
#122F5C #5C1254 #5C3F12 #125C1A
square
#122F5C #5C1254 #5C3F12 #125C1A
split-complementary
#122F5C #5C1A12 #545C12
monochromatic
#050D1A #081529 #122F5C #1C498F #2663C2

Accessibility & contrast

On white

13.23
#122F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#122F5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122F5C
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122F5C#FFFFFF#000000##FFFFFF
##122F5C1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18335E
Deuteranopia (green-blind)
#082D5B
Tritanopia (blue-blind)
#003A41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #122f5c;
/* rgb */ color: rgb(18, 47, 92);
/* oklch */ color: oklch(31.1% 0.088 259.0);
Tailwind
colors: {
  custom: {
    50: '#5c678a',
    500: '#122f5c',
    950: '#000000',
  },
}
SCSS
$custom: #122f5c;
$custom-light: #5c678a;
$custom-dark: #000000;
JSON
{
  "hex": "#122f5c",
  "rgb": {
    "r": 18,
    "g": 47,
    "b": 92
  },
  "hsl": {
    "h": 216.486,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31062,
    "c": 0.08786,
    "h": 259
  },
  "luminance": 0.02934
}

Semantic roles & 50–950 ramp

primary
#122F5C
secondary
#946F35
accent
#A73EEA
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05060C
muted
#797A7D

Preview Lab

Preview with #122F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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