#121F64#121F64

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

Color values

HEX#121F64
RGBrgb(18, 31, 100)
HSLhsl(230, 69%, 23%)
HSVhsv(230, 82%, 39%)
CMYKcmyk(82%, 69%, 0%, 60.8%)
CIE-LABlab(15.64, 22.34, -42.10)
CIE-LCHlch(15.64, 47.66, 297.95°)
OKLaboklab(28.15% -0.003 -0.1218)
OKLCHoklch(28.15% 0.122 268.6)
XYZxyz(3.0389, 2.0283, 12.2855)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F64 #645712
analogous
#124864 #121F64 #2E1264
triadic
#121F64 #64121F #1F6412
tetradic
#121F64 #641248 #645712 #12642E
square
#121F64 #641248 #645712 #12642E
split-complementary
#121F64 #642E12 #486412
monochromatic
#05081A #090F30 #121F64 #1B2F98 #253FCC

Accessibility & contrast

On white

14.94
#121F64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#121F64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F64
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F64#FFFFFF#000000##FFFFFF
##121F641.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121f64;
/* rgb */ color: rgb(18, 31, 100);
/* oklch */ color: oklch(28.2% 0.122 268.6);
Tailwind
colors: {
  custom: {
    50: '#5f5a91',
    500: '#121f64',
    950: '#000000',
  },
}
SCSS
$custom: #121f64;
$custom-light: #5f5a91;
$custom-dark: #000000;
JSON
{
  "hex": "#121f64",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 100
  },
  "hsl": {
    "h": 230.488,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28153,
    "c": 0.12186,
    "h": 268.6
  },
  "luminance": 0.02029
}

Semantic roles & 50–950 ramp

primary
#121F64
secondary
#9C8C36
accent
#D03BEC
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#05030D
muted
#79787E

Preview Lab

Preview with #121F64

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

Preview Lab → · Contrast checker → · Palette generator →

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