#121B4E#121B4E

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

Color values

HEX#121B4E
RGBrgb(18, 27, 78)
HSLhsl(231, 63%, 19%)
HSVhsv(231, 77%, 31%)
CMYKcmyk(76.9%, 65.4%, 0%, 69.4%)
CIE-LABlab(12.37, 16.14, -32.65)
CIE-LCHlch(12.37, 36.42, 296.31°)
OKLaboklab(25.08% 0.0007 -0.0941)
OKLCHoklch(25.08% 0.094 270.4)
XYZxyz(2.0161, 1.4623, 7.3823)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B4E #4E4512
analogous
#12394E #121B4E #27124E
triadic
#121B4E #4E121B #1B4E12
tetradic
#121B4E #4E1239 #4E4512 #124E27
square
#121B4E #4E1239 #4E4512 #124E27
split-complementary
#121B4E #4E2712 #394E12
monochromatic
#060919 #070A1C #121B4E #1D2C80 #293DB1

Accessibility & contrast

On white

16.25
#121B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#121B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B4E
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B4E#FFFFFF#000000##FFFFFF
##121B4E1.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#002831
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #121b4e;
/* rgb */ color: rgb(18, 27, 78);
/* oklch */ color: oklch(25.1% 0.094 270.4);
Tailwind
colors: {
  custom: {
    50: '#5a5780',
    500: '#121b4e',
    950: '#000000',
  },
}
SCSS
$custom: #121b4e;
$custom-light: #5a5780;
$custom-dark: #000000;
JSON
{
  "hex": "#121b4e",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 231,
    "s": 62.5,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25081,
    "c": 0.09414,
    "h": 270.4
  },
  "luminance": 0.01463
}

Semantic roles & 50–950 ramp

primary
#121B4E
secondary
#877B35
accent
#CD42E6
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #121B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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