#121F5E#121F5E

#121F5E is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.5% C 0.113 H 268.6°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#121F5E
RGBrgb(18, 31, 94)
HSLhsl(230, 68%, 22%)
HSVhsv(230, 81%, 37%)
CMYKcmyk(80.9%, 67%, 0%, 63.1%)
CIE-LABlab(15.04, 19.86, -39.09)
CIE-LCHlch(15.04, 43.85, 296.94°)
OKLaboklab(27.53% -0.0027 -0.113)
OKLCHoklch(27.53% 0.113 268.6)
XYZxyz(2.7591, 1.9164, 10.8120)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F5E #5E5112
analogous
#12455E #121F5E #2B125E
triadic
#121F5E #5E121F #1F5E12
tetradic
#121F5E #5E1245 #5E5112 #125E2B
square
#121F5E #5E1245 #5E5112 #125E2B
split-complementary
#121F5E #5E2B12 #455E12
monochromatic
#05081A #080E2B #121F5E #1C3091 #2641C5

Accessibility & contrast

On white

15.18
#121F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#121F5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F5E
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F5E#FFFFFF#000000##FFFFFF
##121F5E1.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002960
Deuteranopia (green-blind)
#00225D
Tritanopia (blue-blind)
#002F3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #121f5e;
/* rgb */ color: rgb(18, 31, 94);
/* oklch */ color: oklch(27.5% 0.113 268.6);
Tailwind
colors: {
  custom: {
    50: '#5e5a8c',
    500: '#121f5e',
    950: '#000000',
  },
}
SCSS
$custom: #121f5e;
$custom-light: #5e5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#121f5e",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 94
  },
  "hsl": {
    "h": 229.737,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27535,
    "c": 0.11304,
    "h": 268.6
  },
  "luminance": 0.01917
}

Semantic roles & 50–950 ramp

primary
#121F5E
secondary
#968635
accent
#CD3DEB
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #121F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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