#121A7E#121A7E

#121A7E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.2% C 0.163 H 268.6°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#121A7E
RGBrgb(18, 26, 126)
HSLhsl(236, 75%, 28%)
HSVhsv(236, 86%, 49%)
CMYKcmyk(85.7%, 79.4%, 0%, 50.6%)
CIE-LABlab(17.34, 35.62, -56.14)
CIE-LCHlch(17.34, 66.49, 302.39°)
OKLaboklab(30.24% -0.0039 -0.1627)
OKLCHoklch(30.24% 0.163 268.6)
XYZxyz(4.3834, 2.3732, 19.9617)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121A7E #7E7612
analogous
#12507E #121A7E #40127E
triadic
#121A7E #7E121A #1A7E12
tetradic
#121A7E #7E1250 #7E7612 #127E40
square
#121A7E #7E1250 #7E7612 #127E40
split-complementary
#121A7E #7E4012 #507E12
monochromatic
#04061B #0A0F48 #121A7E #1A25B4 #2A37E1

Accessibility & contrast

On white

14.24
#121A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#121A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121A7E
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121A7E#FFFFFF#000000##FFFFFF
##121A7E1.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #121a7e;
/* rgb */ color: rgb(18, 26, 126);
/* oklch */ color: oklch(30.2% 0.163 268.6);
Tailwind
colors: {
  custom: {
    50: '#6858a5',
    500: '#121a7e',
    950: '#000000',
  },
}
SCSS
$custom: #121a7e;
$custom-light: #6858a5;
$custom-dark: #000000;
JSON
{
  "hex": "#121a7e",
  "rgb": {
    "r": 18,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 235.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30239,
    "c": 0.16273,
    "h": 268.6
  },
  "luminance": 0.02374
}

Semantic roles & 50–950 ramp

primary
#121A7E
secondary
#B4AB38
accent
#E436F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #121A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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