#122140#122140

#122140 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.3% C 0.062 H 263.2°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#122140
RGBrgb(18, 33, 64)
HSLhsl(220, 56%, 16%)
HSVhsv(220, 72%, 25%)
CMYKcmyk(71.9%, 48.4%, 0%, 74.9%)
CIE-LABlab(13.15, 5.60, -21.68)
CIE-LCHlch(13.15, 22.39, 284.48°)
OKLaboklab(25.31% -0.0074 -0.0618)
OKLCHoklch(25.31% 0.062 263.2)
XYZxyz(1.7184, 1.5863, 5.0651)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122140 #403112
analogous
#123840 #122140 #1A1240
triadic
#122140 #401221 #214012
tetradic
#122140 #401238 #403112 #12401A
square
#122140 #401238 #403112 #12401A
split-complementary
#122140 #401A12 #384012
monochromatic
#070C18 #070C18 #122140 #1F3A70 #2D52A0

Accessibility & contrast

On white

15.94
#122140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#122140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122140
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122140#FFFFFF#000000##FFFFFF
##1221401.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132441
Deuteranopia (green-blind)
#0C203F
Tritanopia (blue-blind)
#00282D
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #122140;
/* rgb */ color: rgb(18, 33, 64);
/* oklch */ color: oklch(25.3% 0.062 263.2);
Tailwind
colors: {
  custom: {
    50: '#555b75',
    500: '#122140',
    950: '#000000',
  },
}
SCSS
$custom: #122140;
$custom-light: #555b75;
$custom-dark: #000000;
JSON
{
  "hex": "#122140",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 220.435,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25311,
    "c": 0.06223,
    "h": 263.2
  },
  "luminance": 0.01586
}

Semantic roles & 50–950 ramp

primary
#122140
secondary
#796335
accent
#AE48DF
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #122140

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

Preview Lab → · Contrast checker → · Palette generator →

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