#122058#122058

#122058 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.103 H 268.0°. Best body text is #FFFFFF at 15.29:1 contrast (WCAG AA passes).

Color values

HEX#122058
RGBrgb(18, 32, 88)
HSLhsl(228, 66%, 21%)
HSVhsv(228, 80%, 35%)
CMYKcmyk(79.5%, 63.6%, 0%, 65.5%)
CIE-LABlab(14.77, 16.61, -35.53)
CIE-LCHlch(14.77, 39.22, 295.06°)
OKLaboklab(27.16% -0.0035 -0.1025)
OKLCHoklch(27.16% 0.103 268)
XYZxyz(2.5268, 1.8659, 9.4576)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122058 #584A12
analogous
#124358 #122058 #271258
triadic
#122058 #581220 #205812
tetradic
#122058 #581243 #584A12 #125827
square
#122058 #581243 #584A12 #125827
split-complementary
#122058 #582712 #435812
monochromatic
#050919 #080E25 #122058 #1C328B #2745BE

Accessibility & contrast

On white

15.29
#122058 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#122058 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122058
15.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122058#FFFFFF#000000##FFFFFF
##1220581.0015.291.3715.29
#FFFFFF15.291.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #122058;
/* rgb */ color: rgb(18, 32, 88);
/* oklch */ color: oklch(27.2% 0.103 268.0);
Tailwind
colors: {
  custom: {
    50: '#5c5b88',
    500: '#122058',
    950: '#000000',
  },
}
SCSS
$custom: #122058;
$custom-light: #5c5b88;
$custom-dark: #000000;
JSON
{
  "hex": "#122058",
  "rgb": {
    "r": 18,
    "g": 32,
    "b": 88
  },
  "hsl": {
    "h": 228,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27155,
    "c": 0.10259,
    "h": 268
  },
  "luminance": 0.01866
}

Semantic roles & 50–950 ramp

primary
#122058
secondary
#917E35
accent
#C73FE9
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #122058

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

Preview Lab → · Contrast checker → · Palette generator →

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