#121F63#121F63

#121F63 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.0% C 0.120 H 268.6°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#121F63
RGBrgb(18, 31, 99)
HSLhsl(230, 69%, 23%)
HSVhsv(230, 82%, 39%)
CMYKcmyk(81.8%, 68.7%, 0%, 61.2%)
CIE-LABlab(15.53, 21.93, -41.60)
CIE-LCHlch(15.53, 47.03, 297.79°)
OKLaboklab(28.05% -0.0029 -0.1204)
OKLCHoklch(28.05% 0.12 268.6)
XYZxyz(2.9908, 2.0091, 12.0321)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F63 #635612
analogous
#124763 #121F63 #2D1263
triadic
#121F63 #63121F #1F6312
tetradic
#121F63 #631247 #635612 #12632D
square
#121F63 #631247 #635612 #12632D
split-complementary
#121F63 #632D12 #476312
monochromatic
#05081A #090F2F #121F63 #1B2F97 #253FCB

Accessibility & contrast

On white

14.98
#121F63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#121F63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F63
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F63#FFFFFF#000000##FFFFFF
##121F631.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002362
Tritanopia (blue-blind)
#00313E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #121f63;
/* rgb */ color: rgb(18, 31, 99);
/* oklch */ color: oklch(28.0% 0.120 268.6);
Tailwind
colors: {
  custom: {
    50: '#5f5a90',
    500: '#121f63',
    950: '#000000',
  },
}
SCSS
$custom: #121f63;
$custom-light: #5f5a90;
$custom-dark: #000000;
JSON
{
  "hex": "#121f63",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 99
  },
  "hsl": {
    "h": 230.37,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28049,
    "c": 0.12041,
    "h": 268.6
  },
  "luminance": 0.02009
}

Semantic roles & 50–950 ramp

primary
#121F63
secondary
#9B8B36
accent
#D03CEC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030D
muted
#7A787D

Preview Lab

Preview with #121F63

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

Preview Lab → · Contrast checker → · Palette generator →

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