#121C7F#121C7F

#121C7F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.162 H 268.4°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#121C7F
RGBrgb(18, 28, 127)
HSLhsl(234, 75%, 28%)
HSVhsv(234, 86%, 50%)
CMYKcmyk(85.8%, 78%, 0%, 50.2%)
CIE-LABlab(17.88, 34.78, -55.88)
CIE-LCHlch(17.88, 65.82, 301.90°)
OKLaboklab(30.66% -0.0046 -0.1619)
OKLCHoklch(30.66% 0.162 268.4)
XYZxyz(4.4942, 2.4909, 20.3185)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121C7F #7F7512
analogous
#12527F #121C7F #3E127F
triadic
#121C7F #7F121C #1C7F12
tetradic
#121C7F #7F1252 #7F7512 #127F3E
square
#121C7F #7F1252 #7F7512 #127F3E
split-complementary
#121C7F #7F3E12 #527F12
monochromatic
#04061B #0A1049 #121C7F #1A28B5 #2B3BE1

Accessibility & contrast

On white

14.02
#121C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#121C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121C7F
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121C7F#FFFFFF#000000##FFFFFF
##121C7F1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121c7f;
/* rgb */ color: rgb(18, 28, 127);
/* oklch */ color: oklch(30.7% 0.162 268.4);
Tailwind
colors: {
  custom: {
    50: '#6859a5',
    500: '#121c7f',
    950: '#000000',
  },
}
SCSS
$custom: #121c7f;
$custom-light: #6859a5;
$custom-dark: #000000;
JSON
{
  "hex": "#121c7f",
  "rgb": {
    "r": 18,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 234.495,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30658,
    "c": 0.16202,
    "h": 268.4
  },
  "luminance": 0.02491
}

Semantic roles & 50–950 ramp

primary
#121C7F
secondary
#B5A938
accent
#E136F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #121C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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