#121C57#121C57

#121C57 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.2% C 0.107 H 269.8°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#121C57
RGBrgb(18, 28, 87)
HSLhsl(231, 66%, 21%)
HSVhsv(231, 79%, 34%)
CMYKcmyk(79.3%, 67.8%, 0%, 65.9%)
CIE-LABlab(13.51, 19.16, -36.90)
CIE-LCHlch(13.51, 41.58, 297.44°)
OKLaboklab(26.2% -0.0003 -0.1066)
OKLCHoklch(26.2% 0.107 269.8)
XYZxyz(2.3844, 1.6470, 9.2072)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121C57 #574D12
analogous
#123E57 #121C57 #2A1257
triadic
#121C57 #57121C #1C5712
tetradic
#121C57 #57123E #574D12 #12572A
square
#121C57 #57123E #574D12 #12572A
split-complementary
#121C57 #572A12 #3E5712
monochromatic
#050819 #080C24 #121C57 #1C2C8A #273DBC

Accessibility & contrast

On white

15.80
#121C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#121C57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121C57
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121C57#FFFFFF#000000##FFFFFF
##121C571.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121c57;
/* rgb */ color: rgb(18, 28, 87);
/* oklch */ color: oklch(26.2% 0.107 269.8);
Tailwind
colors: {
  custom: {
    50: '#5c5887',
    500: '#121c57',
    950: '#000000',
  },
}
SCSS
$custom: #121c57;
$custom-light: #5c5887;
$custom-dark: #000000;
JSON
{
  "hex": "#121c57",
  "rgb": {
    "r": 18,
    "g": 28,
    "b": 87
  },
  "hsl": {
    "h": 231.304,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26196,
    "c": 0.10662,
    "h": 269.8
  },
  "luminance": 0.01647
}

Semantic roles & 50–950 ramp

primary
#121C57
secondary
#908335
accent
#D03FE9
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #121C57

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

Preview Lab → · Contrast checker → · Palette generator →

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