#121D7F#121D7F

#121D7F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.8% C 0.161 H 268.2°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).

Color values

HEX#121D7F
RGBrgb(18, 29, 127)
HSLhsl(234, 75%, 28%)
HSVhsv(234, 86%, 50%)
CMYKcmyk(85.8%, 77.2%, 0%, 50.2%)
CIE-LABlab(18.09, 34.17, -55.52)
CIE-LCHlch(18.09, 65.19, 301.61°)
OKLaboklab(30.81% -0.0049 -0.1609)
OKLCHoklch(30.81% 0.161 268.2)
XYZxyz(4.5183, 2.5391, 20.3265)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121D7F #7F7412
analogous
#12537F #121D7F #3D127F
triadic
#121D7F #7F121D #1D7F12
tetradic
#121D7F #7F1253 #7F7412 #127F3D
square
#121D7F #7F1253 #7F7412 #127F3D
split-complementary
#121D7F #7F3D12 #537F12
monochromatic
#04061B #0A1149 #121D7F #1A29B5 #2B3DE1

Accessibility & contrast

On white

13.93
#121D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#121D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121D7F
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121D7F#FFFFFF#000000##FFFFFF
##121D7F1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121d7f;
/* rgb */ color: rgb(18, 29, 127);
/* oklch */ color: oklch(30.8% 0.161 268.2);
Tailwind
colors: {
  custom: {
    50: '#685aa5',
    500: '#121d7f',
    950: '#000000',
  },
}
SCSS
$custom: #121d7f;
$custom-light: #685aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#121d7f",
  "rgb": {
    "r": 18,
    "g": 29,
    "b": 127
  },
  "hsl": {
    "h": 233.945,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30813,
    "c": 0.16099,
    "h": 268.2
  },
  "luminance": 0.0254
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #121D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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