#121258#121258

#121258 is a very dark, vivid blue. Relative luminance 0.013; OKLCH L 24.4% C 0.121 H 272.9°. Best body text is #FFFFFF at 16.76:1 contrast (WCAG AA passes).

Color values

HEX#121258
RGBrgb(18, 18, 88)
HSLhsl(240, 66%, 21%)
HSVhsv(240, 80%, 35%)
CMYKcmyk(79.5%, 79.5%, 0%, 65.5%)
CIE-LABlab(11.03, 26.55, -41.65)
CIE-LCHlch(11.03, 49.39, 302.51°)
OKLaboklab(24.43% 0.0062 -0.1205)
OKLCHoklch(24.43% 0.121 272.9)
XYZxyz(2.2266, 1.2656, 9.3576)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121258 #585812
analogous
#123558 #121258 #351258
triadic
#121258 #581212 #125812
tetradic
#121258 #581235 #585812 #125835
square
#121258 #581235 #585812 #125835
split-complementary
#121258 #583512 #355812
monochromatic
#050519 #080825 #121258 #1C1C8B #2727BE

Accessibility & contrast

On white

16.76
#121258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#121258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121258
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121258#FFFFFF#000000##FFFFFF
##1212581.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215A
Deuteranopia (green-blind)
#001A57
Tritanopia (blue-blind)
#002634
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #121258;
/* rgb */ color: rgb(18, 18, 88);
/* oklch */ color: oklch(24.4% 0.121 272.9);
Tailwind
colors: {
  custom: {
    50: '#5d5088',
    500: '#121258',
    950: '#000000',
  },
}
SCSS
$custom: #121258;
$custom-light: #5d5088;
$custom-dark: #000000;
JSON
{
  "hex": "#121258",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 240,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.24431,
    "c": 0.12068,
    "h": 272.9
  },
  "luminance": 0.01266
}

Semantic roles & 50–950 ramp

primary
#121258
secondary
#919135
accent
#E93FE9
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020B
muted
#79787C

Preview Lab

Preview with #121258

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

Preview Lab → · Contrast checker → · Palette generator →

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