#121B7F#121B7F

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

Color values

HEX#121B7F
RGBrgb(18, 27, 127)
HSLhsl(235, 75%, 28%)
HSVhsv(235, 86%, 50%)
CMYKcmyk(85.8%, 78.7%, 0%, 50.2%)
CIE-LABlab(17.66, 35.38, -56.23)
CIE-LCHlch(17.66, 66.44, 302.18°)
OKLaboklab(30.51% -0.0043 -0.163)
OKLCHoklch(30.51% 0.163 268.5)
XYZxyz(4.4708, 2.4442, 20.3107)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B7F #7F7612
analogous
#12517F #121B7F #3F127F
triadic
#121B7F #7F121B #1B7F12
tetradic
#121B7F #7F1251 #7F7612 #127F3F
square
#121B7F #7F1251 #7F7612 #127F3F
split-complementary
#121B7F #7F3F12 #517F12
monochromatic
#04061B #0A1049 #121B7F #1A26B5 #2B3AE1

Accessibility & contrast

On white

14.10
#121B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121B7F
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B7F#FFFFFF#000000##FFFFFF
##121B7F1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121b7f;
/* rgb */ color: rgb(18, 27, 127);
/* oklch */ color: oklch(30.5% 0.163 268.5);
Tailwind
colors: {
  custom: {
    50: '#6859a5',
    500: '#121b7f',
    950: '#000000',
  },
}
SCSS
$custom: #121b7f;
$custom-light: #6859a5;
$custom-dark: #000000;
JSON
{
  "hex": "#121b7f",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 235.046,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30507,
    "c": 0.16302,
    "h": 268.5
  },
  "luminance": 0.02445
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #121B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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