#121237#121237

#121237 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.8% C 0.070 H 278.4°. Best body text is #FFFFFF at 17.99:1 contrast (WCAG AA passes).

Color values

HEX#121237
RGBrgb(18, 18, 55)
HSLhsl(240, 51%, 14%)
HSVhsv(240, 67%, 22%)
CMYKcmyk(67.3%, 67.3%, 0%, 78.4%)
CIE-LABlab(7.56, 13.40, -24.24)
CIE-LCHlch(7.56, 27.70, 298.93°)
OKLaboklab(20.85% 0.0103 -0.0696)
OKLCHoklch(20.85% 0.07 278.4)
XYZxyz(1.1551, 0.8370, 3.7144)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121237 #373712
analogous
#122537 #121237 #251237
triadic
#121237 #371212 #123712
tetradic
#121237 #371225 #373712 #123725
square
#121237 #371225 #373712 #123725
split-complementary
#121237 #372512 #253712
monochromatic
#080817 #080817 #121237 #212165 #303093

Accessibility & contrast

On white

17.99
#121237 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#121237 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121237
17.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121237#FFFFFF#000000##FFFFFF
##1212371.0017.991.1717.99
#FFFFFF17.991.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001838
Deuteranopia (green-blind)
#001536
Tritanopia (blue-blind)
#011B22
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #121237;
/* rgb */ color: rgb(18, 18, 55);
/* oklch */ color: oklch(20.8% 0.070 278.4);
Tailwind
colors: {
  custom: {
    50: '#544f6e',
    500: '#121237',
    950: '#000000',
  },
}
SCSS
$custom: #121237;
$custom-light: #544f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#121237",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 55
  },
  "hsl": {
    "h": 240,
    "s": 50.685,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20845,
    "c": 0.07034,
    "h": 278.4
  },
  "luminance": 0.00837
}

Semantic roles & 50–950 ramp

primary
#121237
secondary
#707035
accent
#DA4EDA
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030207
muted
#78787A

Preview Lab

Preview with #121237

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

Preview Lab → · Contrast checker → · Palette generator →

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