#121F76#121F76

#121F76 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.1% C 0.147 H 268.2°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#121F76
RGBrgb(18, 31, 118)
HSLhsl(232, 74%, 27%)
HSVhsv(232, 85%, 46%)
CMYKcmyk(84.7%, 73.7%, 0%, 53.7%)
CIE-LABlab(17.53, 29.49, -50.70)
CIE-LCHlch(17.53, 58.65, 300.19°)
OKLaboklab(30.11% -0.0045 -0.1469)
OKLCHoklch(30.11% 0.147 268.2)
XYZxyz(4.0083, 2.4161, 17.3911)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F76 #766912
analogous
#125176 #121F76 #371276
triadic
#121F76 #76121F #1F7612
tetradic
#121F76 #761251 #766912 #127637
square
#121F76 #761251 #766912 #127637
split-complementary
#121F76 #763712 #517612
monochromatic
#04071B #0A1141 #121F76 #1A2DAB #253DDE

Accessibility & contrast

On white

14.16
#121F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#121F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F76
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F76#FFFFFF#000000##FFFFFF
##121F761.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003079
Deuteranopia (green-blind)
#002674
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #121f76;
/* rgb */ color: rgb(18, 31, 118);
/* oklch */ color: oklch(30.1% 0.147 268.2);
Tailwind
colors: {
  custom: {
    50: '#655b9e',
    500: '#121f76',
    950: '#000000',
  },
}
SCSS
$custom: #121f76;
$custom-light: #655b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#121f76",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 232.2,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30109,
    "c": 0.14697,
    "h": 268.2
  },
  "luminance": 0.02417
}

Semantic roles & 50–950 ramp

primary
#121F76
secondary
#AD9D37
accent
#D838F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #121F76

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

Preview Lab → · Contrast checker → · Palette generator →

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