#122852#122852

#122852 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.5% C 0.082 H 261.9°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#122852
RGBrgb(18, 40, 82)
HSLhsl(219, 64%, 20%)
HSVhsv(219, 78%, 32%)
CMYKcmyk(78%, 51.2%, 0%, 67.8%)
CIE-LABlab(16.77, 8.04, -28.24)
CIE-LCHlch(16.77, 29.36, 285.90°)
OKLaboklab(28.52% -0.0116 -0.0809)
OKLCHoklch(28.52% 0.082 261.9)
XYZxyz(2.5307, 2.2551, 8.2829)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#122852 #523C12
analogous
#124852 #122852 #1C1252
triadic
#122852 #521228 #285212
tetradic
#122852 #521248 #523C12 #12521C
square
#122852 #521248 #523C12 #12521C
split-complementary
#122852 #521C12 #485212
monochromatic
#060C19 #071020 #122852 #1D4084 #2859B6

Accessibility & contrast

On white

14.47
#122852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#122852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #122852
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##122852#FFFFFF#000000##FFFFFF
##1228521.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122D54
Deuteranopia (green-blind)
#042751
Tritanopia (blue-blind)
#003239
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #122852;
/* rgb */ color: rgb(18, 40, 82);
/* oklch */ color: oklch(28.5% 0.082 261.9);
Tailwind
colors: {
  custom: {
    50: '#5a6183',
    500: '#122852',
    950: '#000000',
  },
}
SCSS
$custom: #122852;
$custom-light: #5a6183;
$custom-dark: #000000;
JSON
{
  "hex": "#122852",
  "rgb": {
    "r": 18,
    "g": 40,
    "b": 82
  },
  "hsl": {
    "h": 219.375,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.28518,
    "c": 0.08178,
    "h": 261.9
  },
  "luminance": 0.02255
}

Semantic roles & 50–950 ramp

primary
#122852
secondary
#8B6D35
accent
#AE41E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #122852

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

Preview Lab → · Contrast checker → · Palette generator →

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