#121D7E#121D7E

#121D7E is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.160 H 268.3°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#121D7E
RGBrgb(18, 29, 126)
HSLhsl(234, 75%, 28%)
HSVhsv(234, 86%, 49%)
CMYKcmyk(85.7%, 77%, 0%, 50.6%)
CIE-LABlab(17.98, 33.80, -55.08)
CIE-LCHlch(17.98, 64.62, 301.54°)
OKLaboklab(30.7% -0.0048 -0.1596)
OKLCHoklch(30.7% 0.16 268.3)
XYZxyz(4.4534, 2.5131, 19.9850)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121D7E #7E7312
analogous
#12537E #121D7E #3D127E
triadic
#121D7E #7E121D #1D7E12
tetradic
#121D7E #7E1253 #7E7312 #127E3D
square
#121D7E #7E1253 #7E7312 #127E3D
split-complementary
#121D7E #7E3D12 #537E12
monochromatic
#04061B #0A1148 #121D7E #1A29B4 #2A3CE1

Accessibility & contrast

On white

13.97
#121D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#121D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121D7E
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121D7E#FFFFFF#000000##FFFFFF
##121D7E1.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#00277C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #121d7e;
/* rgb */ color: rgb(18, 29, 126);
/* oklch */ color: oklch(30.7% 0.160 268.3);
Tailwind
colors: {
  custom: {
    50: '#675aa5',
    500: '#121d7e',
    950: '#000000',
  },
}
SCSS
$custom: #121d7e;
$custom-light: #675aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#121d7e",
  "rgb": {
    "r": 18,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 233.889,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30695,
    "c": 0.1597,
    "h": 268.3
  },
  "luminance": 0.02514
}

Semantic roles & 50–950 ramp

primary
#121D7E
secondary
#B4A738
accent
#DF36F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #121D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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