#121852#121852

#121852 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.9% C 0.105 H 271.7°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#121852
RGBrgb(18, 24, 82)
HSLhsl(234, 64%, 20%)
HSVhsv(234, 78%, 32%)
CMYKcmyk(78%, 70.7%, 0%, 67.8%)
CIE-LABlab(11.90, 20.03, -36.15)
CIE-LCHlch(11.90, 41.33, 298.98°)
OKLaboklab(24.86% 0.0031 -0.1045)
OKLCHoklch(24.86% 0.105 271.7)
XYZxyz(2.0986, 1.3909, 8.1389)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121852 #524C12
analogous
#123852 #121852 #2C1252
triadic
#121852 #521218 #185212
tetradic
#121852 #521238 #524C12 #12522C
square
#121852 #521238 #524C12 #12522C
split-complementary
#121852 #522C12 #385212
monochromatic
#060719 #070920 #121852 #1D2784 #2835B6

Accessibility & contrast

On white

16.43
#121852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#121852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121852
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121852#FFFFFF#000000##FFFFFF
##1218521.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#001C51
Tritanopia (blue-blind)
#002732
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #121852;
/* rgb */ color: rgb(18, 24, 82);
/* oklch */ color: oklch(24.9% 0.105 271.7);
Tailwind
colors: {
  custom: {
    50: '#5b5483',
    500: '#121852',
    950: '#000000',
  },
}
SCSS
$custom: #121852;
$custom-light: #5b5483;
$custom-dark: #000000;
JSON
{
  "hex": "#121852",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 234.375,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.24855,
    "c": 0.10451,
    "h": 271.7
  },
  "luminance": 0.01391
}

Semantic roles & 50–950 ramp

primary
#121852
secondary
#8B8335
accent
#D741E7
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #121852

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

Preview Lab → · Contrast checker → · Palette generator →

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