#121C64#121C64

#121C64 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.6% C 0.126 H 269.5°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#121C64
RGBrgb(18, 28, 100)
HSLhsl(233, 69%, 23%)
HSVhsv(233, 82%, 39%)
CMYKcmyk(82%, 72%, 0%, 60.8%)
CIE-LABlab(14.84, 24.46, -43.41)
CIE-LCHlch(14.84, 49.83, 299.40°)
OKLaboklab(27.57% -0.0012 -0.1257)
OKLCHoklch(27.57% 0.126 269.5)
XYZxyz(2.9642, 1.8789, 12.2606)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121C64 #645A12
analogous
#124564 #121C64 #311264
triadic
#121C64 #64121C #1C6412
tetradic
#121C64 #641245 #645A12 #126431
square
#121C64 #641245 #645A12 #126431
split-complementary
#121C64 #643112 #456412
monochromatic
#05071A #090D30 #121C64 #1B2B98 #2539CC

Accessibility & contrast

On white

15.26
#121C64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#121C64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121C64
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121C64#FFFFFF#000000##FFFFFF
##121C641.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002163
Tritanopia (blue-blind)
#00303D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #121c64;
/* rgb */ color: rgb(18, 28, 100);
/* oklch */ color: oklch(27.6% 0.126 269.5);
Tailwind
colors: {
  custom: {
    50: '#605891',
    500: '#121c64',
    950: '#000000',
  },
}
SCSS
$custom: #121c64;
$custom-light: #605891;
$custom-dark: #000000;
JSON
{
  "hex": "#121c64",
  "rgb": {
    "r": 18,
    "g": 28,
    "b": 100
  },
  "hsl": {
    "h": 232.683,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27571,
    "c": 0.12567,
    "h": 269.5
  },
  "luminance": 0.01879
}

Semantic roles & 50–950 ramp

primary
#121C64
secondary
#9C8F36
accent
#D73BEC
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#05030D
muted
#79787E

Preview Lab

Preview with #121C64

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

Preview Lab → · Contrast checker → · Palette generator →

#121C64 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva