#121452#121452

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

Color values

HEX#121452
RGBrgb(18, 20, 82)
HSLhsl(238, 64%, 20%)
HSVhsv(238, 78%, 32%)
CMYKcmyk(78%, 75.6%, 0%, 67.8%)
CIE-LABlab(10.83, 22.88, -37.90)
CIE-LCHlch(10.83, 44.27, 301.12°)
OKLaboklab(24.08% 0.006 -0.1096)
OKLCHoklch(24.08% 0.11 273.1)
XYZxyz(2.0221, 1.2379, 8.1134)
Luminance0.0124 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121452 #525012
analogous
#123452 #121452 #301252
triadic
#121452 #521214 #145212
tetradic
#121452 #521234 #525012 #125230
square
#121452 #521234 #525012 #125230
split-complementary
#121452 #523012 #345212
monochromatic
#060619 #070820 #121452 #1D2084 #282CB6

Accessibility & contrast

On white

16.83
#121452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#121452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #121452
16.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121452#FFFFFF#000000##FFFFFF
##1214521.0016.831.2516.83
#FFFFFF16.831.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002054
Deuteranopia (green-blind)
#001A51
Tritanopia (blue-blind)
#002531
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #121452;
/* rgb */ color: rgb(18, 20, 82);
/* oklch */ color: oklch(24.1% 0.110 273.1);
Tailwind
colors: {
  custom: {
    50: '#5b5283',
    500: '#121452',
    950: '#000000',
  },
}
SCSS
$custom: #121452;
$custom-light: #5b5283;
$custom-dark: #000000;
JSON
{
  "hex": "#121452",
  "rgb": {
    "r": 18,
    "g": 20,
    "b": 82
  },
  "hsl": {
    "h": 238.125,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.24084,
    "c": 0.10974,
    "h": 273.1
  },
  "luminance": 0.01238
}

Semantic roles & 50–950 ramp

primary
#121452
secondary
#8B8835
accent
#E241E7
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #121452

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

Preview Lab → · Contrast checker → · Palette generator →

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