#121A7F#121A7F

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

Color values

HEX#121A7F
RGBrgb(18, 26, 127)
HSLhsl(236, 75%, 28%)
HSVhsv(236, 86%, 50%)
CMYKcmyk(85.8%, 79.5%, 0%, 50.2%)
CIE-LABlab(17.46, 35.98, -56.58)
CIE-LCHlch(17.46, 67.05, 302.45°)
OKLaboklab(30.36% -0.004 -0.164)
OKLCHoklch(30.36% 0.164 268.6)
XYZxyz(4.4483, 2.3992, 20.3032)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121A7F #7F7712
analogous
#12507F #121A7F #40127F
triadic
#121A7F #7F121A #1A7F12
tetradic
#121A7F #7F1250 #7F7712 #127F40
square
#121A7F #7F1250 #7F7712 #127F40
split-complementary
#121A7F #7F4012 #507F12
monochromatic
#04051B #0A0F49 #121A7F #1A25B5 #2B38E1

Accessibility & contrast

On white

14.19
#121A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121A7F
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121A7F#FFFFFF#000000##FFFFFF
##121A7F1.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #121a7f;
/* rgb */ color: rgb(18, 26, 127);
/* oklch */ color: oklch(30.4% 0.164 268.6);
Tailwind
colors: {
  custom: {
    50: '#6858a5',
    500: '#121a7f',
    950: '#000000',
  },
}
SCSS
$custom: #121a7f;
$custom-light: #6858a5;
$custom-dark: #000000;
JSON
{
  "hex": "#121a7f",
  "rgb": {
    "r": 18,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 235.596,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3036,
    "c": 0.164,
    "h": 268.6
  },
  "luminance": 0.024
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #121A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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