#121B57#121B57

#121B57 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.0% C 0.108 H 270.2°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#121B57
RGBrgb(18, 27, 87)
HSLhsl(232, 66%, 21%)
HSVhsv(232, 79%, 34%)
CMYKcmyk(79.3%, 69%, 0%, 65.9%)
CIE-LABlab(13.23, 19.89, -37.36)
CIE-LCHlch(13.23, 42.33, 298.03°)
OKLaboklab(25.99% 0.0005 -0.108)
OKLCHoklch(25.99% 0.108 270.2)
XYZxyz(2.3611, 1.6003, 9.1994)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B57 #574E12
analogous
#123D57 #121B57 #2B1257
triadic
#121B57 #57121B #1B5712
tetradic
#121B57 #57123D #574E12 #12572B
square
#121B57 #57123D #574E12 #12572B
split-complementary
#121B57 #572B12 #3D5712
monochromatic
#050819 #080B24 #121B57 #1C2B8A #273ABC

Accessibility & contrast

On white

15.91
#121B57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#121B57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121B57
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B57#FFFFFF#000000##FFFFFF
##121B571.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#001F56
Tritanopia (blue-blind)
#002B36
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #121b57;
/* rgb */ color: rgb(18, 27, 87);
/* oklch */ color: oklch(26.0% 0.108 270.2);
Tailwind
colors: {
  custom: {
    50: '#5c5787',
    500: '#121b57',
    950: '#000000',
  },
}
SCSS
$custom: #121b57;
$custom-light: #5c5787;
$custom-dark: #000000;
JSON
{
  "hex": "#121b57",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 87
  },
  "hsl": {
    "h": 232.174,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.25989,
    "c": 0.10797,
    "h": 270.2
  },
  "luminance": 0.01601
}

Semantic roles & 50–950 ramp

primary
#121B57
secondary
#908435
accent
#D33FE9
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #121B57

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

Preview Lab → · Contrast checker → · Palette generator →

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