#121757#121757

#121757 is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.2% C 0.113 H 271.7°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#121757
RGBrgb(18, 23, 87)
HSLhsl(236, 66%, 21%)
HSVhsv(236, 79%, 34%)
CMYKcmyk(79.3%, 73.6%, 0%, 65.9%)
CIE-LABlab(12.15, 22.77, -39.13)
CIE-LCHlch(12.15, 45.27, 300.19°)
OKLaboklab(25.2% 0.0033 -0.1132)
OKLCHoklch(25.2% 0.113 271.7)
XYZxyz(2.2756, 1.4293, 9.1709)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121757 #575212
analogous
#123957 #121757 #2F1257
triadic
#121757 #571217 #175712
tetradic
#121757 #571239 #575212 #12572F
square
#121757 #571239 #575212 #12572F
split-complementary
#121757 #572F12 #395712
monochromatic
#050719 #080A24 #121757 #1C248A #2732BC

Accessibility & contrast

On white

16.33
#121757 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#121757 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121757
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121757#FFFFFF#000000##FFFFFF
##1217571.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#001D56
Tritanopia (blue-blind)
#002834
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #121757;
/* rgb */ color: rgb(18, 23, 87);
/* oklch */ color: oklch(25.2% 0.113 271.7);
Tailwind
colors: {
  custom: {
    50: '#5d5487',
    500: '#121757',
    950: '#000000',
  },
}
SCSS
$custom: #121757;
$custom-light: #5d5487;
$custom-dark: #000000;
JSON
{
  "hex": "#121757",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 87
  },
  "hsl": {
    "h": 235.652,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.252,
    "c": 0.11324,
    "h": 271.7
  },
  "luminance": 0.0143
}

Semantic roles & 50–950 ramp

primary
#121757
secondary
#908935
accent
#DC3FE9
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #121757

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

Preview Lab → · Contrast checker → · Palette generator →

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