#122755#122755

#122755 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.5% C 0.088 H 263.4°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#122755
RGBrgb(18, 39, 85)
HSLhsl(221, 65%, 20%)
HSVhsv(221, 79%, 33%)
CMYKcmyk(78.8%, 54.1%, 0%, 66.7%)
CIE-LABlab(16.68, 10.08, -30.41)
CIE-LCHlch(16.68, 32.04, 288.34°)
OKLaboklab(28.52% -0.0101 -0.0874)
OKLCHoklch(28.52% 0.088 263.4)
XYZxyz(2.6141, 2.2352, 8.8862)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122755 #554012
analogous
#124855 #122755 #1E1255
triadic
#122755 #551227 #275512
tetradic
#122755 #551248 #554012 #12551E
square
#122755 #551248 #554012 #12551E
split-complementary
#122755 #551E12 #485512
monochromatic
#050C19 #071022 #122755 #1D3E88 #2755BA

Accessibility & contrast

On white

14.51
#122755 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#122755 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122755
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122755#FFFFFF#000000##FFFFFF
##1227551.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2C57
Deuteranopia (green-blind)
#002654
Tritanopia (blue-blind)
#00323A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #122755;
/* rgb */ color: rgb(18, 39, 85);
/* oklch */ color: oklch(28.5% 0.088 263.4);
Tailwind
colors: {
  custom: {
    50: '#5a6085',
    500: '#122755',
    950: '#000000',
  },
}
SCSS
$custom: #122755;
$custom-light: #5a6085;
$custom-dark: #000000;
JSON
{
  "hex": "#122755",
  "rgb": {
    "r": 18,
    "g": 39,
    "b": 85
  },
  "hsl": {
    "h": 221.194,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.28516,
    "c": 0.08795,
    "h": 263.4
  },
  "luminance": 0.02236
}

Semantic roles & 50–950 ramp

primary
#122755
secondary
#8E7235
accent
#B340E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122755

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

Preview Lab → · Contrast checker → · Palette generator →

#122755 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva