#121C7E#121C7E

#121C7E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.161 H 268.4°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#121C7E
RGBrgb(18, 28, 126)
HSLhsl(234, 75%, 28%)
HSVhsv(234, 86%, 49%)
CMYKcmyk(85.7%, 77.8%, 0%, 50.6%)
CIE-LABlab(17.76, 34.42, -55.44)
CIE-LCHlch(17.76, 65.25, 301.83°)
OKLaboklab(30.54% -0.0045 -0.1607)
OKLCHoklch(30.54% 0.161 268.4)
XYZxyz(4.4293, 2.4649, 19.9770)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121C7E #7E7412
analogous
#12527E #121C7E #3E127E
triadic
#121C7E #7E121C #1C7E12
tetradic
#121C7E #7E1252 #7E7412 #127E3E
square
#121C7E #7E1252 #7E7412 #127E3E
split-complementary
#121C7E #7E3E12 #527E12
monochromatic
#04061B #0A1048 #121C7E #1A28B4 #2A3BE1

Accessibility & contrast

On white

14.07
#121C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#121C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121C7E
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121C7E#FFFFFF#000000##FFFFFF
##121C7E1.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #121c7e;
/* rgb */ color: rgb(18, 28, 126);
/* oklch */ color: oklch(30.5% 0.161 268.4);
Tailwind
colors: {
  custom: {
    50: '#6759a5',
    500: '#121c7e',
    950: '#000000',
  },
}
SCSS
$custom: #121c7e;
$custom-light: #6759a5;
$custom-dark: #000000;
JSON
{
  "hex": "#121c7e",
  "rgb": {
    "r": 18,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 234.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3054,
    "c": 0.16073,
    "h": 268.4
  },
  "luminance": 0.02465
}

Semantic roles & 50–950 ramp

primary
#121C7E
secondary
#B4A838
accent
#E036F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #121C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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