#121752#121752

#121752 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.7% C 0.106 H 272.1°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#121752
RGBrgb(18, 23, 82)
HSLhsl(235, 64%, 20%)
HSVhsv(235, 78%, 32%)
CMYKcmyk(78%, 72%, 0%, 67.8%)
CIE-LABlab(11.62, 20.75, -36.60)
CIE-LCHlch(11.62, 42.07, 299.55°)
OKLaboklab(24.66% 0.0039 -0.1058)
OKLCHoklch(24.66% 0.106 272.1)
XYZxyz(2.0783, 1.3504, 8.1321)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121752 #524D12
analogous
#123752 #121752 #2D1252
triadic
#121752 #521217 #175212
tetradic
#121752 #521237 #524D12 #12522D
square
#121752 #521237 #524D12 #12522D
split-complementary
#121752 #522D12 #375212
monochromatic
#060719 #070920 #121752 #1D2584 #2833B6

Accessibility & contrast

On white

16.53
#121752 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#121752 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121752
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121752#FFFFFF#000000##FFFFFF
##1217521.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.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: #121752;
/* rgb */ color: rgb(18, 23, 82);
/* oklch */ color: oklch(24.7% 0.106 272.1);
Tailwind
colors: {
  custom: {
    50: '#5b5483',
    500: '#121752',
    950: '#000000',
  },
}
SCSS
$custom: #121752;
$custom-light: #5b5483;
$custom-dark: #000000;
JSON
{
  "hex": "#121752",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 82
  },
  "hsl": {
    "h": 235.313,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.24656,
    "c": 0.10585,
    "h": 272.1
  },
  "luminance": 0.01351
}

Semantic roles & 50–950 ramp

primary
#121752
secondary
#8B8435
accent
#DA41E7
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #121752

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

Preview Lab → · Contrast checker → · Palette generator →

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