#121774#121774

#121774 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.6% C 0.153 H 269.5°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#121774
RGBrgb(18, 23, 116)
HSLhsl(237, 73%, 26%)
HSVhsv(237, 84%, 45%)
CMYKcmyk(84.5%, 80.2%, 0%, 54.5%)
CIE-LABlab(15.50, 33.80, -52.77)
CIE-LCHlch(15.50, 62.67, 302.64°)
OKLaboklab(28.59% -0.0013 -0.1529)
OKLCHoklch(28.59% 0.153 269.5)
XYZxyz(3.7072, 2.0019, 16.7106)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121774 #746F12
analogous
#124874 #121774 #3E1274
triadic
#121774 #741217 #177412
tetradic
#121774 #741248 #746F12 #12743E
square
#121774 #741248 #746F12 #12743E
split-complementary
#121774 #743E12 #487412
monochromatic
#04051A #0A0C3F #121774 #1A22A9 #232DDD

Accessibility & contrast

On white

15.00
#121774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#121774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121774
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121774#FFFFFF#000000##FFFFFF
##1217741.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121774;
/* rgb */ color: rgb(18, 23, 116);
/* oklch */ color: oklch(28.6% 0.153 269.5);
Tailwind
colors: {
  custom: {
    50: '#65559d',
    500: '#121774',
    950: '#000000',
  },
}
SCSS
$custom: #121774;
$custom-light: #65559d;
$custom-dark: #000000;
JSON
{
  "hex": "#121774",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 236.939,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.28586,
    "c": 0.15289,
    "h": 269.5
  },
  "luminance": 0.02002
}

Semantic roles & 50–950 ramp

primary
#121774
secondary
#ABA537
accent
#E638F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #121774

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

Preview Lab → · Contrast checker → · Palette generator →

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