#122262#122262

#122262 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.6% C 0.115 H 267.5°. Best body text is #FFFFFF at 14.68:1 contrast (WCAG AA passes).

Color values

HEX#122262
RGBrgb(18, 34, 98)
HSLhsl(228, 69%, 23%)
HSVhsv(228, 82%, 38%)
CMYKcmyk(81.6%, 65.3%, 0%, 61.6%)
CIE-LABlab(16.28, 19.33, -39.73)
CIE-LCHlch(16.28, 44.18, 295.95°)
OKLaboklab(28.57% -0.005 -0.1148)
OKLCHoklch(28.57% 0.115 267.5)
XYZxyz(3.0253, 2.1542, 11.8093)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122262 #625212
analogous
#124A62 #122262 #2A1262
triadic
#122262 #621222 #226212
tetradic
#122262 #62124A #625212 #12622A
square
#122262 #62124A #625212 #12622A
split-complementary
#122262 #622A12 #4A6212
monochromatic
#05091A #09102E #122262 #1B3496 #2546C9

Accessibility & contrast

On white

14.68
#122262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#122262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122262
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122262#FFFFFF#000000##FFFFFF
##1222621.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #122262;
/* rgb */ color: rgb(18, 34, 98);
/* oklch */ color: oklch(28.6% 0.115 267.5);
Tailwind
colors: {
  custom: {
    50: '#5f5c8f',
    500: '#122262',
    950: '#000000',
  },
}
SCSS
$custom: #122262;
$custom-light: #5f5c8f;
$custom-dark: #000000;
JSON
{
  "hex": "#122262",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 98
  },
  "hsl": {
    "h": 228,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28566,
    "c": 0.11495,
    "h": 267.5
  },
  "luminance": 0.02154
}

Semantic roles & 50–950 ramp

primary
#122262
secondary
#9A8636
accent
#C93CEC
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05040C
muted
#79797D

Preview Lab

Preview with #122262

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

Preview Lab → · Contrast checker → · Palette generator →

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