#121F58#121F58

#121F58 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.9% C 0.104 H 268.5°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#121F58
RGBrgb(18, 31, 88)
HSLhsl(229, 66%, 21%)
HSVhsv(229, 80%, 35%)
CMYKcmyk(79.5%, 64.8%, 0%, 65.5%)
CIE-LABlab(14.47, 17.35, -36.01)
CIE-LCHlch(14.47, 39.97, 295.73°)
OKLaboklab(26.94% -0.0027 -0.104)
OKLCHoklch(26.94% 0.104 268.5)
XYZxyz(2.5003, 1.8129, 9.4488)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121F58 #584B12
analogous
#124258 #121F58 #281258
triadic
#121F58 #58121F #1F5812
tetradic
#121F58 #581242 #584B12 #125828
square
#121F58 #581242 #584B12 #125828
split-complementary
#121F58 #582812 #425812
monochromatic
#050919 #080D25 #121F58 #1C318B #2743BE

Accessibility & contrast

On white

15.41
#121F58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#121F58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121F58
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121F58#FFFFFF#000000##FFFFFF
##121F581.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#002157
Tritanopia (blue-blind)
#002D38
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #121f58;
/* rgb */ color: rgb(18, 31, 88);
/* oklch */ color: oklch(26.9% 0.104 268.5);
Tailwind
colors: {
  custom: {
    50: '#5c5a88',
    500: '#121f58',
    950: '#000000',
  },
}
SCSS
$custom: #121f58;
$custom-light: #5c5a88;
$custom-dark: #000000;
JSON
{
  "hex": "#121f58",
  "rgb": {
    "r": 18,
    "g": 31,
    "b": 88
  },
  "hsl": {
    "h": 228.857,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26936,
    "c": 0.10399,
    "h": 268.5
  },
  "luminance": 0.01813
}

Semantic roles & 50–950 ramp

primary
#121F58
secondary
#918035
accent
#C93FE9
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030B
muted
#79787C

Preview Lab

Preview with #121F58

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

Preview Lab → · Contrast checker → · Palette generator →

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