#121246#121246

#121246 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.4% C 0.094 H 275.6°. Best body text is #FFFFFF at 17.49:1 contrast (WCAG AA passes).

Color values

HEX#121246
RGBrgb(18, 18, 70)
HSLhsl(240, 59%, 17%)
HSVhsv(240, 74%, 27%)
CMYKcmyk(74.3%, 74.3%, 0%, 72.5%)
CIE-LABlab(9.02, 19.52, -32.56)
CIE-LCHlch(9.02, 37.97, 300.94°)
OKLaboklab(22.38% 0.0092 -0.094)
OKLCHoklch(22.38% 0.094 275.6)
XYZxyz(1.5709, 1.0033, 5.9040)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121246 #464612
analogous
#122C46 #121246 #2C1246
triadic
#121246 #461212 #124612
tetradic
#121246 #46122C #464612 #12462C
square
#121246 #46122C #464612 #12462C
split-complementary
#121246 #462C12 #2C4612
monochromatic
#060618 #060618 #121246 #1F1F77 #2B2BA7

Accessibility & contrast

On white

17.49
#121246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#121246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121246
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121246#FFFFFF#000000##FFFFFF
##1212461.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C48
Deuteranopia (green-blind)
#001745
Tritanopia (blue-blind)
#00202A
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #121246;
/* rgb */ color: rgb(18, 18, 70);
/* oklch */ color: oklch(22.4% 0.094 275.6);
Tailwind
colors: {
  custom: {
    50: '#58507a',
    500: '#121246',
    950: '#000000',
  },
}
SCSS
$custom: #121246;
$custom-light: #58507a;
$custom-dark: #000000;
JSON
{
  "hex": "#121246",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 70
  },
  "hsl": {
    "h": 240,
    "s": 59.091,
    "l": 17.255
  },
  "oklch": {
    "l": 0.22377,
    "c": 0.09443,
    "h": 275.6
  },
  "luminance": 0.01003
}

Semantic roles & 50–950 ramp

primary
#121246
secondary
#7F7F35
accent
#E246E2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040209
muted
#79787B

Preview Lab

Preview with #121246

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

Preview Lab → · Contrast checker → · Palette generator →

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