#122138#122138

#122138 is a very dark, muted blue. Relative luminance 0.015; OKLCH L 24.7% C 0.049 H 258.7°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#122138
RGBrgb(18, 33, 56)
HSLhsl(216, 51%, 15%)
HSVhsv(216, 68%, 22%)
CMYKcmyk(67.9%, 41.1%, 0%, 78%)
CIE-LABlab(12.62, 2.25, -16.87)
CIE-LCHlch(12.62, 17.02, 277.60°)
OKLaboklab(24.73% -0.0096 -0.0477)
OKLCHoklch(24.73% 0.049 258.7)
XYZxyz(1.5069, 1.5017, 3.9511)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122138 #382912
analogous
#123438 #122138 #161238
triadic
#122138 #381221 #213812
tetradic
#122138 #381234 #382912 #123816
square
#122138 #381234 #382912 #123816
split-complementary
#122138 #381612 #343812
monochromatic
#070E17 #070E17 #122138 #213C66 #305895

Accessibility & contrast

On white

16.15
#122138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#122138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122138
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122138#FFFFFF#000000##FFFFFF
##1221381.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172339
Deuteranopia (green-blind)
#131F38
Tritanopia (blue-blind)
#002629
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #122138;
/* rgb */ color: rgb(18, 33, 56);
/* oklch */ color: oklch(24.7% 0.049 258.7);
Tailwind
colors: {
  custom: {
    50: '#545b6e',
    500: '#122138',
    950: '#000000',
  },
}
SCSS
$custom: #122138;
$custom-light: #545b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#122138",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 56
  },
  "hsl": {
    "h": 216.316,
    "s": 51.351,
    "l": 14.51
  },
  "oklch": {
    "l": 0.2473,
    "c": 0.04868,
    "h": 258.7
  },
  "luminance": 0.01502
}

Semantic roles & 50–950 ramp

primary
#122138
secondary
#715935
accent
#A34DDB
background
#F4F5F6
surface
#E8E9EC
border
#C4C5C7
text
#030407
muted
#78797A

Preview Lab

Preview with #122138

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

Preview Lab → · Contrast checker → · Palette generator →

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