#121273#121273

#121273 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.8% C 0.156 H 270.1°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#121273
RGBrgb(18, 18, 115)
HSLhsl(240, 73%, 26%)
HSVhsv(240, 84%, 45%)
CMYKcmyk(84.3%, 84.3%, 0%, 54.9%)
CIE-LABlab(14.39, 36.28, -53.96)
CIE-LCHlch(14.39, 65.02, 303.91°)
OKLaboklab(27.78% 0.0003 -0.1562)
OKLCHoklch(27.78% 0.156 270.1)
XYZxyz(3.5592, 1.7986, 16.3759)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121273 #737312
analogous
#124273 #121273 #421273
triadic
#121273 #731212 #127312
tetradic
#121273 #731242 #737312 #127342
square
#121273 #731242 #737312 #127342
split-complementary
#121273 #734212 #427312
monochromatic
#04041A #0A0A3E #121273 #1A1AA8 #2323DD

Accessibility & contrast

On white

15.44
#121273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#121273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121273
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121273#FFFFFF#000000##FFFFFF
##1212731.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002976
Deuteranopia (green-blind)
#001F71
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #121273;
/* rgb */ color: rgb(18, 18, 115);
/* oklch */ color: oklch(27.8% 0.156 270.1);
Tailwind
colors: {
  custom: {
    50: '#65529c',
    500: '#121273',
    950: '#000000',
  },
}
SCSS
$custom: #121273;
$custom-light: #65529c;
$custom-dark: #000000;
JSON
{
  "hex": "#121273",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 240,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.27775,
    "c": 0.15623,
    "h": 270.1
  },
  "luminance": 0.01799
}

Semantic roles & 50–950 ramp

primary
#121273
secondary
#AAAA37
accent
#F038F0
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #121273

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

Preview Lab → · Contrast checker → · Palette generator →

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