#121C58#121C58

#121C58 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.3% C 0.108 H 269.8°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#121C58
RGBrgb(18, 28, 88)
HSLhsl(231, 66%, 21%)
HSVhsv(231, 80%, 35%)
CMYKcmyk(79.5%, 68.2%, 0%, 65.5%)
CIE-LABlab(13.61, 19.57, -37.41)
CIE-LCHlch(13.61, 42.22, 297.62°)
OKLaboklab(26.3% -0.0003 -0.1081)
OKLCHoklch(26.3% 0.108 269.8)
XYZxyz(2.4256, 1.6634, 9.4239)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121C58 #584E12
analogous
#123F58 #121C58 #2B1258
triadic
#121C58 #58121C #1C5812
tetradic
#121C58 #58123F #584E12 #12582B
square
#121C58 #58123F #584E12 #12582B
split-complementary
#121C58 #582B12 #3F5812
monochromatic
#050819 #080C25 #121C58 #1C2C8B #273CBE

Accessibility & contrast

On white

15.76
#121C58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121C58
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121C58#FFFFFF#000000##FFFFFF
##121C581.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002057
Tritanopia (blue-blind)
#002C37
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #121c58;
/* rgb */ color: rgb(18, 28, 88);
/* oklch */ color: oklch(26.3% 0.108 269.8);
Tailwind
colors: {
  custom: {
    50: '#5c5888',
    500: '#121c58',
    950: '#000000',
  },
}
SCSS
$custom: #121c58;
$custom-light: #5c5888;
$custom-dark: #000000;
JSON
{
  "hex": "#121c58",
  "rgb": {
    "r": 18,
    "g": 28,
    "b": 88
  },
  "hsl": {
    "h": 231.429,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26299,
    "c": 0.10812,
    "h": 269.8
  },
  "luminance": 0.01664
}

Semantic roles & 50–950 ramp

primary
#121C58
secondary
#918435
accent
#D13FE9
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #121C58

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

Preview Lab → · Contrast checker → · Palette generator →

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