#122C52#122C52

#122C52 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.5% C 0.076 H 258.0°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#122C52
RGBrgb(18, 44, 82)
HSLhsl(216, 64%, 20%)
HSVhsv(216, 78%, 32%)
CMYKcmyk(78%, 46.3%, 0%, 67.8%)
CIE-LABlab(18.09, 5.09, -26.12)
CIE-LCHlch(18.09, 26.61, 281.02°)
OKLaboklab(29.54% -0.0158 -0.0746)
OKLCHoklch(29.54% 0.076 258)
XYZxyz(2.6726, 2.5389, 8.3302)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122C52 #523812
analogous
#124C52 #122C52 #181252
triadic
#122C52 #52122C #2C5212
tetradic
#122C52 #52124C #523812 #125218
square
#122C52 #52124C #523812 #125218
split-complementary
#122C52 #521812 #4C5212
monochromatic
#060D19 #071120 #122C52 #1D4784 #2862B6

Accessibility & contrast

On white

13.93
#122C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#122C52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122C52
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122C52#FFFFFF#000000##FFFFFF
##122C521.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2F53
Deuteranopia (green-blind)
#0F2951
Tritanopia (blue-blind)
#00353B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #122c52;
/* rgb */ color: rgb(18, 44, 82);
/* oklch */ color: oklch(29.5% 0.076 258.0);
Tailwind
colors: {
  custom: {
    50: '#596483',
    500: '#122c52',
    950: '#000000',
  },
}
SCSS
$custom: #122c52;
$custom-light: #596483;
$custom-dark: #000000;
JSON
{
  "hex": "#122c52",
  "rgb": {
    "r": 18,
    "g": 44,
    "b": 82
  },
  "hsl": {
    "h": 215.625,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29536,
    "c": 0.07631,
    "h": 258
  },
  "luminance": 0.02539
}

Semantic roles & 50–950 ramp

primary
#122C52
secondary
#8B6835
accent
#A341E7
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #122C52

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

Preview Lab → · Contrast checker → · Palette generator →

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