#123873#123873

#123873 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.1% C 0.110 H 259.3°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#123873
RGBrgb(18, 56, 115)
HSLhsl(216, 73%, 26%)
HSVhsv(216, 84%, 45%)
CMYKcmyk(84.3%, 51.3%, 0%, 54.9%)
CIE-LABlab(24.30, 10.54, -37.73)
CIE-LCHlch(24.30, 39.17, 285.61°)
OKLaboklab(35.08% -0.0206 -0.1085)
OKLCHoklch(35.08% 0.11 259.3)
XYZxyz(4.7570, 4.1942, 16.7752)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123873 #734D12
analogous
#126873 #123873 #1C1273
triadic
#123873 #731238 #387312
tetradic
#123873 #731268 #734D12 #12731C
square
#123873 #731268 #734D12 #12731C
split-complementary
#123873 #731C12 #687312
monochromatic
#040D1A #0A1E3E #123873 #1A52A8 #236CDD

Accessibility & contrast

On white

11.42
#123873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#123873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #123873
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123873#FFFFFF#000000##FFFFFF
##1238731.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153E75
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#004650
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #123873;
/* rgb */ color: rgb(18, 56, 115);
/* oklch */ color: oklch(35.1% 0.110 259.3);
Tailwind
colors: {
  custom: {
    50: '#626e9c',
    500: '#123873',
    950: '#000000',
  },
}
SCSS
$custom: #123873;
$custom-light: #626e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#123873",
  "rgb": {
    "r": 18,
    "g": 56,
    "b": 115
  },
  "hsl": {
    "h": 216.495,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.35079,
    "c": 0.11048,
    "h": 259.3
  },
  "luminance": 0.04195
}

Semantic roles & 50–950 ramp

primary
#123873
secondary
#AA7D37
accent
#A838F0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #123873

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

Preview Lab → · Contrast checker → · Palette generator →

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