#122258#122258

#122258 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.6% C 0.100 H 267.0°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#122258
RGBrgb(18, 34, 88)
HSLhsl(226, 66%, 21%)
HSVhsv(226, 80%, 35%)
CMYKcmyk(79.5%, 61.4%, 0%, 65.5%)
CIE-LABlab(15.37, 15.11, -34.55)
CIE-LCHlch(15.37, 37.71, 293.62°)
OKLaboklab(27.6% -0.0052 -0.0996)
OKLCHoklch(27.6% 0.1 267)
XYZxyz(2.5823, 1.9770, 9.4761)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122258 #584812
analogous
#124558 #122258 #251258
triadic
#122258 #581222 #225812
tetradic
#122258 #581245 #584812 #125825
square
#122258 #581245 #584812 #125825
split-complementary
#122258 #582512 #455812
monochromatic
#050A19 #080E25 #122258 #1C368B #2749BE

Accessibility & contrast

On white

15.05
#122258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#122258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122258
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122258#FFFFFF#000000##FFFFFF
##1222581.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5A
Deuteranopia (green-blind)
#002357
Tritanopia (blue-blind)
#002F39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #122258;
/* rgb */ color: rgb(18, 34, 88);
/* oklch */ color: oklch(27.6% 0.100 267.0);
Tailwind
colors: {
  custom: {
    50: '#5c5c88',
    500: '#122258',
    950: '#000000',
  },
}
SCSS
$custom: #122258;
$custom-light: #5c5c88;
$custom-dark: #000000;
JSON
{
  "hex": "#122258",
  "rgb": {
    "r": 18,
    "g": 34,
    "b": 88
  },
  "hsl": {
    "h": 226.286,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27603,
    "c": 0.09978,
    "h": 267
  },
  "luminance": 0.01977
}

Semantic roles & 50–950 ramp

primary
#122258
secondary
#917C35
accent
#C23FE9
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040B
muted
#79797C

Preview Lab

Preview with #122258

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

Preview Lab → · Contrast checker → · Palette generator →

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