#121F59#121F59

#121F59 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.0% C 0.106 H 268.6°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#121F59
RGBrgb(18, 31, 89)
HSLhsl(229, 66%, 21%)
HSVhsv(229, 80%, 35%)
CMYKcmyk(79.8%, 65.2%, 0%, 65.1%)
CIE-LABlab(14.57, 17.77, -36.53)
CIE-LCHlch(14.57, 40.62, 295.95°)
OKLaboklab(27.03% -0.0027 -0.1055)
OKLCHoklch(27.03% 0.106 268.6)
XYZxyz(2.5420, 1.8296, 9.6684)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F59 #594C12
analogous
#124259 #121F59 #281259
triadic
#121F59 #59121F #1F5912
tetradic
#121F59 #591242 #594C12 #125928
square
#121F59 #591242 #594C12 #125928
split-complementary
#121F59 #592812 #425912
monochromatic
#050919 #080D26 #121F59 #1C318C #2742BF

Accessibility & contrast

On white

15.37
#121F59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#121F59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F59
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F59#FFFFFF#000000##FFFFFF
##121F591.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285B
Deuteranopia (green-blind)
#002258
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #121f59;
/* rgb */ color: rgb(18, 31, 89);
/* oklch */ color: oklch(27.0% 0.106 268.6);
Tailwind
colors: {
  custom: {
    50: '#5c5a88',
    500: '#121f59',
    950: '#000000',
  },
}
SCSS
$custom: #121f59;
$custom-light: #5c5a88;
$custom-dark: #000000;
JSON
{
  "hex": "#121f59",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 89
  },
  "hsl": {
    "h": 229.014,
    "s": 66.355,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27034,
    "c": 0.10552,
    "h": 268.6
  },
  "luminance": 0.0183
}

Semantic roles & 50–950 ramp

primary
#121F59
secondary
#928135
accent
#CA3FE9
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #121F59

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

Preview Lab → · Contrast checker → · Palette generator →

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