#122B52#122B52

#122B52 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.3% C 0.078 H 259.1°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#122B52
RGBrgb(18, 43, 82)
HSLhsl(217, 64%, 20%)
HSVhsv(217, 78%, 32%)
CMYKcmyk(78%, 47.6%, 0%, 67.8%)
CIE-LABlab(17.76, 5.82, -26.65)
CIE-LCHlch(17.76, 27.28, 282.32°)
OKLaboklab(29.28% -0.0147 -0.0762)
OKLCHoklch(29.28% 0.078 259.1)
XYZxyz(2.6358, 2.4653, 8.3179)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122B52 #523912
analogous
#124B52 #122B52 #191252
triadic
#122B52 #52122B #2B5212
tetradic
#122B52 #52124B #523912 #125219
square
#122B52 #52124B #523912 #125219
split-complementary
#122B52 #521912 #4B5212
monochromatic
#060D19 #071120 #122B52 #1D4584 #2860B6

Accessibility & contrast

On white

14.06
#122B52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#122B52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122B52
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122B52#FFFFFF#000000##FFFFFF
##122B521.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182F54
Deuteranopia (green-blind)
#0C2951
Tritanopia (blue-blind)
#00343A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #122b52;
/* rgb */ color: rgb(18, 43, 82);
/* oklch */ color: oklch(29.3% 0.078 259.1);
Tailwind
colors: {
  custom: {
    50: '#5a6383',
    500: '#122b52',
    950: '#000000',
  },
}
SCSS
$custom: #122b52;
$custom-light: #5a6383;
$custom-dark: #000000;
JSON
{
  "hex": "#122b52",
  "rgb": {
    "r": 18,
    "g": 43,
    "b": 82
  },
  "hsl": {
    "h": 216.563,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29279,
    "c": 0.07764,
    "h": 259.1
  },
  "luminance": 0.02466
}

Semantic roles & 50–950 ramp

primary
#122B52
secondary
#8B6935
accent
#A641E7
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #122B52

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

Preview Lab → · Contrast checker → · Palette generator →

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