#121874#121874

#121874 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.7% C 0.152 H 269.4°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#121874
RGBrgb(18, 24, 116)
HSLhsl(236, 73%, 26%)
HSVhsv(236, 84%, 45%)
CMYKcmyk(84.5%, 79.3%, 0%, 54.5%)
CIE-LABlab(15.71, 33.20, -52.42)
CIE-LCHlch(15.71, 62.05, 302.35°)
OKLaboklab(28.74% -0.0016 -0.1519)
OKLCHoklch(28.74% 0.152 269.4)
XYZxyz(3.7274, 2.0424, 16.7174)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121874 #746E12
analogous
#124974 #121874 #3D1274
triadic
#121874 #741218 #187412
tetradic
#121874 #741249 #746E12 #12743D
square
#121874 #741249 #746E12 #12743D
split-complementary
#121874 #743D12 #497412
monochromatic
#04051A #0A0D3F #121874 #1A23A9 #232FDD

Accessibility & contrast

On white

14.91
#121874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#121874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121874
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121874#FFFFFF#000000##FFFFFF
##1218741.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002272
Tritanopia (blue-blind)
#003445
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #121874;
/* rgb */ color: rgb(18, 24, 116);
/* oklch */ color: oklch(28.7% 0.152 269.4);
Tailwind
colors: {
  custom: {
    50: '#65569d',
    500: '#121874',
    950: '#000000',
  },
}
SCSS
$custom: #121874;
$custom-light: #65569d;
$custom-dark: #000000;
JSON
{
  "hex": "#121874",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 236.327,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28735,
    "c": 0.15189,
    "h": 269.4
  },
  "luminance": 0.02043
}

Semantic roles & 50–950 ramp

primary
#121874
secondary
#ABA437
accent
#E538F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #121874

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

Preview Lab → · Contrast checker → · Palette generator →

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