#121F7F#121F7F

#121F7F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.159 H 268.0°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#121F7F
RGBrgb(18, 31, 127)
HSLhsl(233, 75%, 28%)
HSVhsv(233, 86%, 50%)
CMYKcmyk(85.8%, 75.6%, 0%, 50.2%)
CIE-LABlab(18.54, 32.91, -54.78)
CIE-LCHlch(18.54, 63.91, 301.00°)
OKLaboklab(31.13% -0.0056 -0.1588)
OKLCHoklch(31.13% 0.159 268)
XYZxyz(4.5689, 2.6403, 20.3434)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F7F #7F7212
analogous
#12557F #121F7F #3B127F
triadic
#121F7F #7F121F #1F7F12
tetradic
#121F7F #7F1255 #7F7212 #127F3B
square
#121F7F #7F1255 #7F7212 #127F3B
split-complementary
#121F7F #7F3B12 #557F12
monochromatic
#04071B #0A1249 #121F7F #1A2CB5 #2B40E1

Accessibility & contrast

On white

13.74
#121F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#121F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F7F
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F7F#FFFFFF#000000##FFFFFF
##121F7F1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #121f7f;
/* rgb */ color: rgb(18, 31, 127);
/* oklch */ color: oklch(31.1% 0.159 268.0);
Tailwind
colors: {
  custom: {
    50: '#675ba5',
    500: '#121f7f',
    950: '#000000',
  },
}
SCSS
$custom: #121f7f;
$custom-light: #675ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#121f7f",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 232.844,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31132,
    "c": 0.15888,
    "h": 268
  },
  "luminance": 0.02641
}

Semantic roles & 50–950 ramp

primary
#121F7F
secondary
#B5A638
accent
#DB36F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #121F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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