#122161#122161

#122161 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 28.3% C 0.115 H 267.9°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#122161
RGBrgb(18, 33, 97)
HSLhsl(229, 69%, 23%)
HSVhsv(229, 81%, 38%)
CMYKcmyk(81.4%, 66%, 0%, 62%)
CIE-LABlab(15.90, 19.65, -39.69)
CIE-LCHlch(15.90, 44.29, 296.34°)
OKLaboklab(28.26% -0.0042 -0.1147)
OKLCHoklch(28.26% 0.115 267.9)
XYZxyz(2.9502, 2.0791, 11.5528)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122161 #615212
analogous
#124861 #122161 #2B1261
triadic
#122161 #611221 #216112
tetradic
#122161 #611248 #615212 #12612B
square
#122161 #611248 #615212 #12612B
split-complementary
#122161 #612B12 #486112
monochromatic
#05091A #080F2D #122161 #1C3395 #2544C8

Accessibility & contrast

On white

14.83
#122161 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#122161 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122161
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122161#FFFFFF#000000##FFFFFF
##1221611.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B63
Deuteranopia (green-blind)
#002460
Tritanopia (blue-blind)
#00323D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #122161;
/* rgb */ color: rgb(18, 33, 97);
/* oklch */ color: oklch(28.3% 0.115 267.9);
Tailwind
colors: {
  custom: {
    50: '#5e5c8f',
    500: '#122161',
    950: '#000000',
  },
}
SCSS
$custom: #122161;
$custom-light: #5e5c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#122161",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 97
  },
  "hsl": {
    "h": 228.608,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28256,
    "c": 0.11481,
    "h": 267.9
  },
  "luminance": 0.02079
}

Semantic roles & 50–950 ramp

primary
#122161
secondary
#998636
accent
#CA3CEC
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #122161

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

Preview Lab → · Contrast checker → · Palette generator →

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