#121D58#121D58

#121D58 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.5% C 0.107 H 269.4°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#121D58
RGBrgb(18, 29, 88)
HSLhsl(231, 66%, 21%)
HSVhsv(231, 80%, 35%)
CMYKcmyk(79.5%, 67%, 0%, 65.5%)
CIE-LABlab(13.89, 18.84, -36.95)
CIE-LCHlch(13.89, 41.48, 297.01°)
OKLaboklab(26.51% -0.0011 -0.1067)
OKLCHoklch(26.51% 0.107 269.4)
XYZxyz(2.4497, 1.7116, 9.4319)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121D58 #584D12
analogous
#124058 #121D58 #2A1258
triadic
#121D58 #58121D #1D5812
tetradic
#121D58 #581240 #584D12 #12582A
square
#121D58 #581240 #584D12 #12582A
split-complementary
#121D58 #582A12 #405812
monochromatic
#050819 #080C25 #121D58 #1C2E8B #273EBE

Accessibility & contrast

On white

15.64
#121D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#121D58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121D58
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121D58#FFFFFF#000000##FFFFFF
##121D581.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #121d58;
/* rgb */ color: rgb(18, 29, 88);
/* oklch */ color: oklch(26.5% 0.107 269.4);
Tailwind
colors: {
  custom: {
    50: '#5c5888',
    500: '#121d58',
    950: '#000000',
  },
}
SCSS
$custom: #121d58;
$custom-light: #5c5888;
$custom-dark: #000000;
JSON
{
  "hex": "#121d58",
  "rgb": {
    "r": 18,
    "g": 29,
    "b": 88
  },
  "hsl": {
    "h": 230.571,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26508,
    "c": 0.10676,
    "h": 269.4
  },
  "luminance": 0.01712
}

Semantic roles & 50–950 ramp

primary
#121D58
secondary
#918235
accent
#CE3FE9
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #121D58

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

Preview Lab → · Contrast checker → · Palette generator →

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