#123874#123874

#123874 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.2% C 0.112 H 259.5°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#123874
RGBrgb(18, 56, 116)
HSLhsl(217, 73%, 26%)
HSVhsv(217, 84%, 45%)
CMYKcmyk(84.5%, 51.7%, 0%, 54.5%)
CIE-LABlab(24.38, 10.97, -38.25)
CIE-LCHlch(24.38, 39.79, 286.00°)
OKLaboklab(35.16% -0.0204 -0.1101)
OKLCHoklch(35.16% 0.112 259.5)
XYZxyz(4.8149, 4.2173, 17.0799)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#123874 #744E12
analogous
#126974 #123874 #1D1274
triadic
#123874 #741238 #387412
tetradic
#123874 #741269 #744E12 #12741D
square
#123874 #741269 #744E12 #12741D
split-complementary
#123874 #741D12 #697412
monochromatic
#040D1A #0A1E3F #123874 #1A52A9 #236BDD

Accessibility & contrast

On white

11.39
#123874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #123874
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##123874#FFFFFF#000000##FFFFFF
##1238741.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143F76
Deuteranopia (green-blind)
#003673
Tritanopia (blue-blind)
#004650
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #123874;
/* rgb */ color: rgb(18, 56, 116);
/* oklch */ color: oklch(35.2% 0.112 259.5);
Tailwind
colors: {
  custom: {
    50: '#626e9c',
    500: '#123874',
    950: '#000000',
  },
}
SCSS
$custom: #123874;
$custom-light: #626e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#123874",
  "rgb": {
    "r": 18,
    "g": 56,
    "b": 116
  },
  "hsl": {
    "h": 216.735,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35159,
    "c": 0.11194,
    "h": 259.5
  },
  "luminance": 0.04218
}

Semantic roles & 50–950 ramp

primary
#123874
secondary
#AB7E37
accent
#A938F0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #123874

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

Preview Lab → · Contrast checker → · Palette generator →

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