#121255#121255

#121255 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 24.1% C 0.116 H 273.3°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#121255
RGBrgb(18, 18, 85)
HSLhsl(240, 65%, 20%)
HSVhsv(240, 79%, 33%)
CMYKcmyk(78.8%, 78.8%, 0%, 66.7%)
CIE-LABlab(10.68, 25.40, -40.19)
CIE-LCHlch(10.68, 47.55, 302.29°)
OKLaboklab(24.08% 0.0068 -0.1163)
OKLCHoklch(24.08% 0.116 273.3)
XYZxyz(2.1049, 1.2169, 8.7165)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121255 #555512
analogous
#123355 #121255 #331255
triadic
#121255 #551212 #125512
tetradic
#121255 #551233 #555512 #125533
square
#121255 #551233 #555512 #125533
split-complementary
#121255 #553312 #335512
monochromatic
#050519 #070722 #121255 #1D1D88 #2727BA

Accessibility & contrast

On white

16.89
#121255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#121255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121255
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121255#FFFFFF#000000##FFFFFF
##1212551.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002057
Deuteranopia (green-blind)
#001A54
Tritanopia (blue-blind)
#002532
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #121255;
/* rgb */ color: rgb(18, 18, 85);
/* oklch */ color: oklch(24.1% 0.116 273.3);
Tailwind
colors: {
  custom: {
    50: '#5d5086',
    500: '#121255',
    950: '#000000',
  },
}
SCSS
$custom: #121255;
$custom-light: #5d5086;
$custom-dark: #000000;
JSON
{
  "hex": "#121255",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 240,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.24076,
    "c": 0.11648,
    "h": 273.3
  },
  "luminance": 0.01217
}

Semantic roles & 50–950 ramp

primary
#121255
secondary
#8E8E35
accent
#E840E8
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #121255

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

Preview Lab → · Contrast checker → · Palette generator →

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