#121B7E#121B7E

#121B7E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.4% C 0.162 H 268.5°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#121B7E
RGBrgb(18, 27, 126)
HSLhsl(235, 75%, 28%)
HSVhsv(235, 86%, 49%)
CMYKcmyk(85.7%, 78.6%, 0%, 50.6%)
CIE-LABlab(17.55, 35.02, -55.79)
CIE-LCHlch(17.55, 65.88, 302.12°)
OKLaboklab(30.39% -0.0042 -0.1617)
OKLCHoklch(30.39% 0.162 268.5)
XYZxyz(4.4060, 2.4183, 19.9692)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B7E #7E7512
analogous
#12517E #121B7E #3F127E
triadic
#121B7E #7E121B #1B7E12
tetradic
#121B7E #7E1251 #7E7512 #127E3F
square
#121B7E #7E1251 #7E7512 #127E3F
split-complementary
#121B7E #7E3F12 #517E12
monochromatic
#04061B #0A1048 #121B7E #1A26B4 #2A39E1

Accessibility & contrast

On white

14.15
#121B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#121B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B7E
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B7E#FFFFFF#000000##FFFFFF
##121B7E1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121b7e;
/* rgb */ color: rgb(18, 27, 126);
/* oklch */ color: oklch(30.4% 0.162 268.5);
Tailwind
colors: {
  custom: {
    50: '#6859a5',
    500: '#121b7e',
    950: '#000000',
  },
}
SCSS
$custom: #121b7e;
$custom-light: #6859a5;
$custom-dark: #000000;
JSON
{
  "hex": "#121b7e",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 235,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30388,
    "c": 0.16174,
    "h": 268.5
  },
  "luminance": 0.02419
}

Semantic roles & 50–950 ramp

primary
#121B7E
secondary
#B4A938
accent
#E236F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #121B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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