#183871#183871

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

Color values

HEX#183871
RGBrgb(24, 56, 113)
HSLhsl(218, 65%, 27%)
HSVhsv(218, 79%, 44%)
CMYKcmyk(78.8%, 50.4%, 0%, 55.7%)
CIE-LABlab(24.37, 10.44, -36.34)
CIE-LCHlch(24.37, 37.81, 286.02°)
OKLaboklab(35.14% -0.0167 -0.1043)
OKLCHoklch(35.14% 0.106 260.9)
XYZxyz(4.7704, 4.2143, 16.1816)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#183871 #715118
analogous
#186571 #183871 #251871
triadic
#183871 #711838 #387118
tetradic
#183871 #711865 #715118 #187125
square
#183871 #711865 #715118 #187125
split-complementary
#183871 #712518 #657118
monochromatic
#050D19 #0D1F3F #183871 #2351A3 #306BD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##183871#FFFFFF#000000##FFFFFF
##1838711.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)
#183E73
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#00464F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #183871;
/* rgb */ color: rgb(24, 56, 113);
/* oklch */ color: oklch(35.1% 0.106 260.9);
Tailwind
colors: {
  custom: {
    50: '#636e9a',
    500: '#183871',
    950: '#000000',
  },
}
SCSS
$custom: #183871;
$custom-light: #636e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#183871",
  "rgb": {
    "r": 24,
    "g": 56,
    "b": 113
  },
  "hsl": {
    "h": 218.427,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3514,
    "c": 0.10568,
    "h": 260.9
  },
  "luminance": 0.04215
}

Semantic roles & 50–950 ramp

primary
#183871
secondary
#A6813E
accent
#AC40E8
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06070E
muted
#7A7A7E

Preview Lab

Preview with #183871

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

Preview Lab → · Contrast checker → · Palette generator →

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