#121B58#121B58

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

Color values

HEX#121B58
RGBrgb(18, 27, 88)
HSLhsl(232, 66%, 21%)
HSVhsv(232, 80%, 35%)
CMYKcmyk(79.5%, 69.3%, 0%, 65.5%)
CIE-LABlab(13.33, 20.30, -37.87)
CIE-LCHlch(13.33, 42.97, 298.19°)
OKLaboklab(26.09% 0.0004 -0.1095)
OKLCHoklch(26.09% 0.109 270.2)
XYZxyz(2.4022, 1.6168, 9.4161)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121B58 #584F12
analogous
#123E58 #121B58 #2C1258
triadic
#121B58 #58121B #1B5812
tetradic
#121B58 #58123E #584F12 #12582C
square
#121B58 #58123E #584F12 #12582C
split-complementary
#121B58 #582C12 #3E5812
monochromatic
#050819 #080B25 #121B58 #1C2B8B #273ABE

Accessibility & contrast

On white

15.87
#121B58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121B58
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121B58#FFFFFF#000000##FFFFFF
##121B581.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#001F57
Tritanopia (blue-blind)
#002B36
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #121b58;
/* rgb */ color: rgb(18, 27, 88);
/* oklch */ color: oklch(26.1% 0.109 270.2);
Tailwind
colors: {
  custom: {
    50: '#5c5788',
    500: '#121b58',
    950: '#000000',
  },
}
SCSS
$custom: #121b58;
$custom-light: #5c5788;
$custom-dark: #000000;
JSON
{
  "hex": "#121b58",
  "rgb": {
    "r": 18,
    "g": 27,
    "b": 88
  },
  "hsl": {
    "h": 232.286,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26093,
    "c": 0.10947,
    "h": 270.2
  },
  "luminance": 0.01617
}

Semantic roles & 50–950 ramp

primary
#121B58
secondary
#918535
accent
#D33FE9
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #121B58

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

Preview Lab → · Contrast checker → · Palette generator →

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