#122854#122854

#122854 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.7% C 0.085 H 262.4°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#122854
RGBrgb(18, 40, 84)
HSLhsl(220, 65%, 20%)
HSVhsv(220, 79%, 33%)
CMYKcmyk(78.6%, 52.4%, 0%, 67.1%)
CIE-LABlab(16.92, 8.90, -29.35)
CIE-LCHlch(16.92, 30.67, 286.88°)
OKLaboklab(28.68% -0.0112 -0.0842)
OKLCHoklch(28.68% 0.085 262.4)
XYZxyz(2.6079, 2.2860, 8.6896)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122854 #543E12
analogous
#124954 #122854 #1D1254
triadic
#122854 #541228 #285412
tetradic
#122854 #541249 #543E12 #12541D
square
#122854 #541249 #543E12 #12541D
split-complementary
#122854 #541D12 #495412
monochromatic
#050C19 #071022 #122854 #1D4086 #2858B9

Accessibility & contrast

On white

14.41
#122854 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#122854 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122854
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122854#FFFFFF#000000##FFFFFF
##1228541.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102D56
Deuteranopia (green-blind)
#012753
Tritanopia (blue-blind)
#00323A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #122854;
/* rgb */ color: rgb(18, 40, 84);
/* oklch */ color: oklch(28.7% 0.085 262.4);
Tailwind
colors: {
  custom: {
    50: '#5a6184',
    500: '#122854',
    950: '#000000',
  },
}
SCSS
$custom: #122854;
$custom-light: #5a6184;
$custom-dark: #000000;
JSON
{
  "hex": "#122854",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 84
  },
  "hsl": {
    "h": 220,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.2868,
    "c": 0.08496,
    "h": 262.4
  },
  "luminance": 0.02286
}

Semantic roles & 50–950 ramp

primary
#122854
secondary
#8D7035
accent
#B040E8
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #122854

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

Preview Lab → · Contrast checker → · Palette generator →

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