#121958#121958

#121958 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.7% C 0.112 H 270.9°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#121958
RGBrgb(18, 25, 88)
HSLhsl(234, 66%, 21%)
HSVhsv(234, 80%, 35%)
CMYKcmyk(79.5%, 71.6%, 0%, 65.5%)
CIE-LABlab(12.79, 21.75, -38.77)
CIE-LCHlch(12.79, 44.45, 299.29°)
OKLaboklab(25.69% 0.0019 -0.1121)
OKLCHoklch(25.69% 0.112 270.9)
XYZxyz(2.3579, 1.5282, 9.4013)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121958 #585112
analogous
#123C58 #121958 #2E1258
triadic
#121958 #581219 #195812
tetradic
#121958 #58123C #585112 #12582E
square
#121958 #58123C #585112 #12582E
split-complementary
#121958 #582E12 #3C5812
monochromatic
#050719 #080B25 #121958 #1C278B #2736BE

Accessibility & contrast

On white

16.08
#121958 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#121958 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121958
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121958#FFFFFF#000000##FFFFFF
##1219581.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245A
Deuteranopia (green-blind)
#001E57
Tritanopia (blue-blind)
#002A36
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #121958;
/* rgb */ color: rgb(18, 25, 88);
/* oklch */ color: oklch(25.7% 0.112 270.9);
Tailwind
colors: {
  custom: {
    50: '#5d5588',
    500: '#121958',
    950: '#000000',
  },
}
SCSS
$custom: #121958;
$custom-light: #5d5588;
$custom-dark: #000000;
JSON
{
  "hex": "#121958",
  "rgb": {
    "r": 18,
    "g": 25,
    "b": 88
  },
  "hsl": {
    "h": 234,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.25694,
    "c": 0.11213,
    "h": 270.9
  },
  "luminance": 0.01528
}

Semantic roles & 50–950 ramp

primary
#121958
secondary
#918735
accent
#D83FE9
background
#F5F5F8
surface
#E9E8F0
border
#C5C4CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #121958

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

Preview Lab → · Contrast checker → · Palette generator →

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