#121457#121457

#121457 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.7% C 0.117 H 272.6°. Best body text is #FFFFFF at 16.62:1 contrast (WCAG AA passes).

Color values

HEX#121457
RGBrgb(18, 20, 87)
HSLhsl(238, 66%, 21%)
HSVhsv(238, 79%, 34%)
CMYKcmyk(79.3%, 77%, 0%, 65.9%)
CIE-LABlab(11.39, 24.84, -40.38)
CIE-LCHlch(11.39, 47.41, 301.60°)
OKLaboklab(24.65% 0.0052 -0.1168)
OKLCHoklch(24.65% 0.117 272.6)
XYZxyz(2.2193, 1.3168, 9.1522)
Luminance0.0132 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121457 #575512
analogous
#123657 #121457 #321257
triadic
#121457 #571214 #145712
tetradic
#121457 #571236 #575512 #125732
square
#121457 #571236 #575512 #125732
split-complementary
#121457 #573212 #365712
monochromatic
#050619 #080824 #121457 #1C208A #272BBC

Accessibility & contrast

On white

16.62
#121457 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#121457 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121457
16.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121457#FFFFFF#000000##FFFFFF
##1214571.0016.621.2616.62
#FFFFFF16.621.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#001B56
Tritanopia (blue-blind)
#002734
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #121457;
/* rgb */ color: rgb(18, 20, 87);
/* oklch */ color: oklch(24.7% 0.117 272.6);
Tailwind
colors: {
  custom: {
    50: '#5d5287',
    500: '#121457',
    950: '#000000',
  },
}
SCSS
$custom: #121457;
$custom-light: #5d5287;
$custom-dark: #000000;
JSON
{
  "hex": "#121457",
  "rgb": {
    "r": 18,
    "g": 20,
    "b": 87
  },
  "hsl": {
    "h": 238.261,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.24653,
    "c": 0.11695,
    "h": 272.6
  },
  "luminance": 0.01317
}

Semantic roles & 50–950 ramp

primary
#121457
secondary
#908D35
accent
#E43FE9
background
#F5F4F8
surface
#E9E7F0
border
#C5C3CB
text
#05020B
muted
#79787C

Preview Lab

Preview with #121457

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

Preview Lab → · Contrast checker → · Palette generator →

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