#121843#121843

#121843 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.3% C 0.081 H 272.5°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#121843
RGBrgb(18, 24, 67)
HSLhsl(233, 58%, 17%)
HSVhsv(233, 73%, 26%)
CMYKcmyk(73.1%, 64.2%, 0%, 73.7%)
CIE-LABlab(10.46, 13.79, -28.10)
CIE-LCHlch(10.46, 31.31, 296.14°)
OKLaboklab(23.35% 0.0035 -0.0808)
OKLCHoklch(23.35% 0.081 272.5)
XYZxyz(1.5889, 1.1870, 5.4545)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#121843 #433D12
analogous
#123143 #121843 #251243
triadic
#121843 #431218 #184312
tetradic
#121843 #431231 #433D12 #124325
square
#121843 #431231 #433D12 #124325
split-complementary
#121843 #432512 #314312
monochromatic
#060918 #060918 #121843 #1F2973 #2C3BA3

Accessibility & contrast

On white

16.97
#121843 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #121843
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##121843#FFFFFF#000000##FFFFFF
##1218431.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F44
Deuteranopia (green-blind)
#001A42
Tritanopia (blue-blind)
#00222A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #121843;
/* rgb */ color: rgb(18, 24, 67);
/* oklch */ color: oklch(23.3% 0.081 272.5);
Tailwind
colors: {
  custom: {
    50: '#575477',
    500: '#121843',
    950: '#000000',
  },
}
SCSS
$custom: #121843;
$custom-light: #575477;
$custom-dark: #000000;
JSON
{
  "hex": "#121843",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 67
  },
  "hsl": {
    "h": 232.653,
    "s": 57.647,
    "l": 16.667
  },
  "oklch": {
    "l": 0.23348,
    "c": 0.08092,
    "h": 272.5
  },
  "luminance": 0.01187
}

Semantic roles & 50–950 ramp

primary
#121843
secondary
#7C7335
accent
#CE47E1
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #121843

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

Preview Lab → · Contrast checker → · Palette generator →

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