#121B74#121B74

#121B74 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.2% C 0.149 H 269.0°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#121B74
RGBrgb(18, 27, 116)
HSLhsl(234, 73%, 26%)
HSVhsv(234, 84%, 45%)
CMYKcmyk(84.5%, 76.7%, 0%, 54.5%)
CIE-LABlab(16.37, 31.33, -51.33)
CIE-LCHlch(16.37, 60.14, 301.40°)
OKLaboklab(29.21% -0.0026 -0.1487)
OKLCHoklch(29.21% 0.149 269)
XYZxyz(3.7927, 2.1730, 16.7391)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B74 #746B12
analogous
#124C74 #121B74 #3A1274
triadic
#121B74 #74121B #1B7412
tetradic
#121B74 #74124C #746B12 #12743A
square
#121B74 #74124C #746B12 #12743A
split-complementary
#121B74 #743A12 #4C7412
monochromatic
#04061A #0A0F3F #121B74 #1A27A9 #2335DD

Accessibility & contrast

On white

14.64
#121B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#121B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B74
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B74#FFFFFF#000000##FFFFFF
##121B741.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002472
Tritanopia (blue-blind)
#003546
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #121b74;
/* rgb */ color: rgb(18, 27, 116);
/* oklch */ color: oklch(29.2% 0.149 269.0);
Tailwind
colors: {
  custom: {
    50: '#65589d',
    500: '#121b74',
    950: '#000000',
  },
}
SCSS
$custom: #121b74;
$custom-light: #65589d;
$custom-dark: #000000;
JSON
{
  "hex": "#121b74",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 234.49,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29206,
    "c": 0.14875,
    "h": 269
  },
  "luminance": 0.02173
}

Semantic roles & 50–950 ramp

primary
#121B74
secondary
#ABA037
accent
#DF38F0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #121B74

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

Preview Lab → · Contrast checker → · Palette generator →

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