#121758#121758

#121758 is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.3% C 0.115 H 271.6°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#121758
RGBrgb(18, 23, 88)
HSLhsl(236, 66%, 21%)
HSVhsv(236, 80%, 35%)
CMYKcmyk(79.5%, 73.9%, 0%, 65.5%)
CIE-LABlab(12.26, 23.17, -39.63)
CIE-LCHlch(12.26, 45.91, 300.31°)
OKLaboklab(25.31% 0.0032 -0.1146)
OKLCHoklch(25.31% 0.115 271.6)
XYZxyz(2.3167, 1.4457, 9.3876)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121758 #585312
analogous
#123A58 #121758 #301258
triadic
#121758 #581217 #175812
tetradic
#121758 #58123A #585312 #125830
square
#121758 #58123A #585312 #125830
split-complementary
#121758 #583012 #3A5812
monochromatic
#050719 #080A25 #121758 #1C248B #2732BE

Accessibility & contrast

On white

16.29
#121758 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#121758 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121758
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121758#FFFFFF#000000##FFFFFF
##1217581.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235A
Deuteranopia (green-blind)
#001D57
Tritanopia (blue-blind)
#002935
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #121758;
/* rgb */ color: rgb(18, 23, 88);
/* oklch */ color: oklch(25.3% 0.115 271.6);
Tailwind
colors: {
  custom: {
    50: '#5d5488',
    500: '#121758',
    950: '#000000',
  },
}
SCSS
$custom: #121758;
$custom-light: #5d5488;
$custom-dark: #000000;
JSON
{
  "hex": "#121758",
  "rgb": {
    "r": 18,
    "g": 23,
    "b": 88
  },
  "hsl": {
    "h": 235.714,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.25311,
    "c": 0.11469,
    "h": 271.6
  },
  "luminance": 0.01446
}

Semantic roles & 50–950 ramp

primary
#121758
secondary
#918A35
accent
#DD3FE9
background
#F5F4F8
surface
#E9E7F0
border
#C5C3CB
text
#05020B
muted
#79787C

Preview Lab

Preview with #121758

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

Preview Lab → · Contrast checker → · Palette generator →

#121758 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva