#121962#121962

#121962 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.8% C 0.127 H 270.3°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#121962
RGBrgb(18, 25, 98)
HSLhsl(235, 69%, 23%)
HSVhsv(235, 82%, 38%)
CMYKcmyk(81.6%, 74.5%, 0%, 61.6%)
CIE-LABlab(13.86, 25.74, -43.70)
CIE-LCHlch(13.86, 50.71, 300.50°)
OKLaboklab(26.8% 0.0008 -0.1265)
OKLCHoklch(26.8% 0.127 270.3)
XYZxyz(2.8009, 1.7054, 11.7345)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121962 #625B12
analogous
#124162 #121962 #331262
triadic
#121962 #621219 #196212
tetradic
#121962 #621241 #625B12 #126233
square
#121962 #621241 #625B12 #126233
split-complementary
#121962 #623312 #416212
monochromatic
#05071A #090C2E #121962 #1B2696 #2533C9

Accessibility & contrast

On white

15.66
#121962 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#121962 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121962
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121962#FFFFFF#000000##FFFFFF
##1219621.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002764
Deuteranopia (green-blind)
#001F61
Tritanopia (blue-blind)
#002D3B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121962;
/* rgb */ color: rgb(18, 25, 98);
/* oklch */ color: oklch(26.8% 0.127 270.3);
Tailwind
colors: {
  custom: {
    50: '#605690',
    500: '#121962',
    950: '#000000',
  },
}
SCSS
$custom: #121962;
$custom-light: #605690;
$custom-dark: #000000;
JSON
{
  "hex": "#121962",
  "rgb": {
    "r": 18,
    "g": 25,
    "b": 98
  },
  "hsl": {
    "h": 234.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26797,
    "c": 0.1265,
    "h": 270.3
  },
  "luminance": 0.01706
}

Semantic roles & 50–950 ramp

primary
#121962
secondary
#9A9136
accent
#DC3CEC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #121962

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

Preview Lab → · Contrast checker → · Palette generator →

#121962 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva