#121B51#121B51

#121B51 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.4% C 0.099 H 270.4°. Best body text is #FFFFFF at 16.14:1 contrast (WCAG AA passes).

Color values

HEX#121B51
RGBrgb(18, 27, 81)
HSLhsl(231, 64%, 19%)
HSVhsv(231, 78%, 32%)
CMYKcmyk(77.8%, 66.7%, 0%, 68.2%)
CIE-LABlab(12.65, 17.40, -34.24)
CIE-LCHlch(12.65, 38.41, 296.94°)
OKLaboklab(25.38% 0.0007 -0.0988)
OKLCHoklch(25.38% 0.099 270.4)
XYZxyz(2.1261, 1.5063, 7.9617)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B51 #514812
analogous
#123B51 #121B51 #291251
triadic
#121B51 #51121B #1B5112
tetradic
#121B51 #51123B #514812 #125129
square
#121B51 #51123B #514812 #125129
split-complementary
#121B51 #512912 #3B5112
monochromatic
#060819 #070A1F #121B51 #1D2C83 #283CB5

Accessibility & contrast

On white

16.14
#121B51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#121B51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B51
16.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B51#FFFFFF#000000##FFFFFF
##121B511.0016.141.3016.14
#FFFFFF16.141.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002453
Deuteranopia (green-blind)
#001E50
Tritanopia (blue-blind)
#002933
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #121b51;
/* rgb */ color: rgb(18, 27, 81);
/* oklch */ color: oklch(25.4% 0.099 270.4);
Tailwind
colors: {
  custom: {
    50: '#5a5782',
    500: '#121b51',
    950: '#000000',
  },
}
SCSS
$custom: #121b51;
$custom-light: #5a5782;
$custom-dark: #000000;
JSON
{
  "hex": "#121b51",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 81
  },
  "hsl": {
    "h": 231.429,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25378,
    "c": 0.09883,
    "h": 270.4
  },
  "luminance": 0.01507
}

Semantic roles & 50–950 ramp

primary
#121B51
secondary
#8A7E35
accent
#CF41E7
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #121B51

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

Preview Lab → · Contrast checker → · Palette generator →

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