#121458#121458

#121458 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.8% C 0.118 H 272.5°. Best body text is #FFFFFF at 16.58:1 contrast (WCAG AA passes).

Color values

HEX#121458
RGBrgb(18, 20, 88)
HSLhsl(238, 66%, 21%)
HSVhsv(238, 80%, 35%)
CMYKcmyk(79.5%, 77.3%, 0%, 65.5%)
CIE-LABlab(11.51, 25.23, -40.87)
CIE-LCHlch(11.51, 48.03, 301.68°)
OKLaboklab(24.77% 0.0051 -0.1183)
OKLCHoklch(24.77% 0.118 272.5)
XYZxyz(2.2605, 1.3333, 9.3688)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121458 #585612
analogous
#123758 #121458 #331258
triadic
#121458 #581214 #145812
tetradic
#121458 #581237 #585612 #125833
square
#121458 #581237 #585612 #125833
split-complementary
#121458 #583312 #375812
monochromatic
#050619 #080825 #121458 #1C208B #272BBE

Accessibility & contrast

On white

16.58
#121458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121458
16.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121458#FFFFFF#000000##FFFFFF
##1214581.0016.581.2716.58
#FFFFFF16.581.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225A
Deuteranopia (green-blind)
#001B57
Tritanopia (blue-blind)
#002734
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #121458;
/* rgb */ color: rgb(18, 20, 88);
/* oklch */ color: oklch(24.8% 0.118 272.5);
Tailwind
colors: {
  custom: {
    50: '#5d5288',
    500: '#121458',
    950: '#000000',
  },
}
SCSS
$custom: #121458;
$custom-light: #5d5288;
$custom-dark: #000000;
JSON
{
  "hex": "#121458",
  "rgb": {
    "r": 18,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 238.286,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.24769,
    "c": 0.11837,
    "h": 272.5
  },
  "luminance": 0.01333
}

Semantic roles & 50–950 ramp

primary
#121458
secondary
#918E35
accent
#E43FE9
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020B
muted
#79787C

Preview Lab

Preview with #121458

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

Preview Lab → · Contrast checker → · Palette generator →

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