#121845#121845

#121845 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.5% C 0.084 H 272.4°. Best body text is #FFFFFF at 16.90:1 contrast (WCAG AA passes).

Color values

HEX#121845
RGBrgb(18, 24, 69)
HSLhsl(233, 59%, 17%)
HSVhsv(233, 74%, 27%)
CMYKcmyk(73.9%, 65.2%, 0%, 72.9%)
CIE-LABlab(10.64, 14.63, -29.21)
CIE-LCHlch(10.64, 32.67, 296.60°)
OKLaboklab(23.54% 0.0036 -0.0841)
OKLCHoklch(23.54% 0.084 272.4)
XYZxyz(1.6499, 1.2114, 5.7759)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121845 #453F12
analogous
#123245 #121845 #261245
triadic
#121845 #451218 #184512
tetradic
#121845 #451232 #453F12 #124526
square
#121845 #451232 #453F12 #124526
split-complementary
#121845 #452612 #324512
monochromatic
#060818 #060818 #121845 #1F2976 #2B3AA6

Accessibility & contrast

On white

16.90
#121845 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121845
16.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121845#FFFFFF#000000##FFFFFF
##1218451.0016.901.2416.90
#FFFFFF16.901.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F47
Deuteranopia (green-blind)
#001B44
Tritanopia (blue-blind)
#00232B
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #121845;
/* rgb */ color: rgb(18, 24, 69);
/* oklch */ color: oklch(23.5% 0.084 272.4);
Tailwind
colors: {
  custom: {
    50: '#575479',
    500: '#121845',
    950: '#000000',
  },
}
SCSS
$custom: #121845;
$custom-light: #575479;
$custom-dark: #000000;
JSON
{
  "hex": "#121845",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 69
  },
  "hsl": {
    "h": 232.941,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23539,
    "c": 0.08418,
    "h": 272.4
  },
  "luminance": 0.01212
}

Semantic roles & 50–950 ramp

primary
#121845
secondary
#7E7535
accent
#CF46E2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #121845

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

Preview Lab → · Contrast checker → · Palette generator →

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