#121257#121257

#121257 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 24.3% C 0.119 H 273.1°. Best body text is #FFFFFF at 16.80:1 contrast (WCAG AA passes).

Color values

HEX#121257
RGBrgb(18, 18, 87)
HSLhsl(240, 66%, 21%)
HSVhsv(240, 79%, 34%)
CMYKcmyk(79.3%, 79.3%, 0%, 65.9%)
CIE-LABlab(10.91, 26.17, -41.17)
CIE-LCHlch(10.91, 48.78, 302.44°)
OKLaboklab(24.31% 0.0064 -0.1191)
OKLCHoklch(24.31% 0.119 273.1)
XYZxyz(2.1855, 1.2491, 9.1409)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121257 #575712
analogous
#123457 #121257 #341257
triadic
#121257 #571212 #125712
tetradic
#121257 #571234 #575712 #125734
square
#121257 #571234 #575712 #125734
split-complementary
#121257 #573412 #345712
monochromatic
#050519 #080824 #121257 #1C1C8A #2727BC

Accessibility & contrast

On white

16.80
#121257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121257
16.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121257#FFFFFF#000000##FFFFFF
##1212571.0016.801.2516.80
#FFFFFF16.801.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002159
Deuteranopia (green-blind)
#001A56
Tritanopia (blue-blind)
#002633
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #121257;
/* rgb */ color: rgb(18, 18, 87);
/* oklch */ color: oklch(24.3% 0.119 273.1);
Tailwind
colors: {
  custom: {
    50: '#5d5087',
    500: '#121257',
    950: '#000000',
  },
}
SCSS
$custom: #121257;
$custom-light: #5d5087;
$custom-dark: #000000;
JSON
{
  "hex": "#121257",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 240,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.24312,
    "c": 0.11928,
    "h": 273.1
  },
  "luminance": 0.01249
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #121257

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

Preview Lab → · Contrast checker → · Palette generator →

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