#122358#122358

#122358 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.8% C 0.098 H 266.5°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#122358
RGBrgb(18, 35, 88)
HSLhsl(225, 66%, 21%)
HSVhsv(225, 80%, 35%)
CMYKcmyk(79.5%, 60.2%, 0%, 65.5%)
CIE-LABlab(15.67, 14.36, -34.06)
CIE-LCHlch(15.67, 36.96, 292.87°)
OKLaboklab(27.83% -0.0061 -0.0982)
OKLCHoklch(27.83% 0.098 266.5)
XYZxyz(2.6113, 2.0350, 9.4858)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122358 #584712
analogous
#124658 #122358 #241258
triadic
#122358 #581223 #235812
tetradic
#122358 #581246 #584712 #125824
square
#122358 #581246 #584712 #125824
split-complementary
#122358 #582412 #465812
monochromatic
#050A19 #080F25 #122358 #1C378B #274BBE

Accessibility & contrast

On white

14.93
#122358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#122358 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122358
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122358#FFFFFF#000000##FFFFFF
##1223581.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#003039
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #122358;
/* rgb */ color: rgb(18, 35, 88);
/* oklch */ color: oklch(27.8% 0.098 266.5);
Tailwind
colors: {
  custom: {
    50: '#5c5d88',
    500: '#122358',
    950: '#000000',
  },
}
SCSS
$custom: #122358;
$custom-light: #5c5d88;
$custom-dark: #000000;
JSON
{
  "hex": "#122358",
  "rgb": {
    "r": 18,
    "g": 35,
    "b": 88
  },
  "hsl": {
    "h": 225.429,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27831,
    "c": 0.09836,
    "h": 266.5
  },
  "luminance": 0.02035
}

Semantic roles & 50–950 ramp

primary
#122358
secondary
#917A35
accent
#C03FE9
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#04040B
muted
#79797C

Preview Lab

Preview with #122358

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

Preview Lab → · Contrast checker → · Palette generator →

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