#122162#122162

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

Color values

HEX#122162
RGBrgb(18, 33, 98)
HSLhsl(229, 69%, 23%)
HSVhsv(229, 82%, 38%)
CMYKcmyk(81.6%, 66.3%, 0%, 61.6%)
CIE-LABlab(15.99, 20.07, -40.19)
CIE-LCHlch(15.99, 44.92, 296.53°)
OKLaboklab(28.36% -0.0042 -0.1162)
OKLCHoklch(28.36% 0.116 267.9)
XYZxyz(2.9971, 2.0978, 11.7999)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122162 #625312
analogous
#124962 #122162 #2B1262
triadic
#122162 #621221 #216212
tetradic
#122162 #621249 #625312 #12622B
square
#122162 #621249 #625312 #12622B
split-complementary
#122162 #622B12 #496212
monochromatic
#05091A #09102E #122162 #1B3296 #2544C9

Accessibility & contrast

On white

14.79
#122162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #122162
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122162#FFFFFF#000000##FFFFFF
##1221621.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002461
Tritanopia (blue-blind)
#00323E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #122162;
/* rgb */ color: rgb(18, 33, 98);
/* oklch */ color: oklch(28.4% 0.116 267.9);
Tailwind
colors: {
  custom: {
    50: '#5f5c8f',
    500: '#122162',
    950: '#000000',
  },
}
SCSS
$custom: #122162;
$custom-light: #5f5c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#122162",
  "rgb": {
    "r": 18,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 228.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28356,
    "c": 0.11629,
    "h": 267.9
  },
  "luminance": 0.02098
}

Semantic roles & 50–950 ramp

primary
#122162
secondary
#9A8736
accent
#CB3CEC
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #122162

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

Preview Lab → · Contrast checker → · Palette generator →

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