#122354#122354

#122354 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.5% C 0.092 H 266.0°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#122354
RGBrgb(18, 35, 84)
HSLhsl(225, 65%, 20%)
HSVhsv(225, 79%, 33%)
CMYKcmyk(78.6%, 58.3%, 0%, 67.1%)
CIE-LABlab(15.33, 12.65, -31.91)
CIE-LCHlch(15.33, 34.33, 291.63°)
OKLaboklab(27.47% -0.0064 -0.0919)
OKLCHoklch(27.47% 0.092 266)
XYZxyz(2.4502, 1.9705, 8.6370)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122354 #544312
analogous
#124454 #122354 #221254
triadic
#122354 #541223 #235412
tetradic
#122354 #541244 #544312 #125422
square
#122354 #541244 #544312 #125422
split-complementary
#122354 #542212 #445412
monochromatic
#050B19 #070E22 #122354 #1D3886 #284DB9

Accessibility & contrast

On white

15.06
#122354 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#122354 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122354
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122354#FFFFFF#000000##FFFFFF
##1223541.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012A56
Deuteranopia (green-blind)
#002353
Tritanopia (blue-blind)
#002F37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #122354;
/* rgb */ color: rgb(18, 35, 84);
/* oklch */ color: oklch(27.5% 0.092 266.0);
Tailwind
colors: {
  custom: {
    50: '#5a5d84',
    500: '#122354',
    950: '#000000',
  },
}
SCSS
$custom: #122354;
$custom-light: #5a5d84;
$custom-dark: #000000;
JSON
{
  "hex": "#122354",
  "rgb": {
    "r": 18,
    "g": 35,
    "b": 84
  },
  "hsl": {
    "h": 224.545,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.2747,
    "c": 0.09208,
    "h": 266
  },
  "luminance": 0.01971
}

Semantic roles & 50–950 ramp

primary
#122354
secondary
#8D7635
accent
#BD40E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #122354

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

Preview Lab → · Contrast checker → · Palette generator →

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