#183F87#183F87

#183F87 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.5% C 0.129 H 261.3°. Best body text is #FFFFFF at 10.00:1 contrast (WCAG AA passes).

Color values

HEX#183F87
RGBrgb(24, 63, 135)
HSLhsl(219, 70%, 31%)
HSVhsv(219, 82%, 53%)
CMYKcmyk(82.2%, 53.3%, 0%, 47.1%)
CIE-LABlab(28.11, 14.62, -44.15)
CIE-LCHlch(28.11, 46.51, 288.32°)
OKLaboklab(38.52% -0.0194 -0.1272)
OKLCHoklch(38.52% 0.129 261.3)
XYZxyz(6.5258, 5.4977, 23.6342)
Luminance0.0550 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#183F87 #876018
analogous
#187687 #183F87 #281887
triadic
#183F87 #87183F #3F8718
tetradic
#183F87 #871876 #876018 #188728
square
#183F87 #871876 #876018 #188728
split-complementary
#183F87 #872818 #768718
monochromatic
#060F1F #0F2753 #183F87 #2157BB #3D75DC

Accessibility & contrast

On white

10.00
#183F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#183F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #183F87
10.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##183F87#FFFFFF#000000##FFFFFF
##183F871.0010.002.1010.00
#FFFFFF10.001.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D488A
Deuteranopia (green-blind)
#003E86
Tritanopia (blue-blind)
#00515C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #183f87;
/* rgb */ color: rgb(24, 63, 135);
/* oklch */ color: oklch(38.5% 0.129 261.3);
Tailwind
colors: {
  custom: {
    50: '#6873aa',
    500: '#183f87',
    950: '#000000',
  },
}
SCSS
$custom: #183f87;
$custom-light: #6873aa;
$custom-dark: #000000;
JSON
{
  "hex": "#183f87",
  "rgb": {
    "r": 24,
    "g": 63,
    "b": 135
  },
  "hsl": {
    "h": 218.919,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38517,
    "c": 0.12866,
    "h": 261.3
  },
  "luminance": 0.05498
}

Semantic roles & 50–950 ramp

primary
#183F87
secondary
#BB9040
accent
#AE3BED
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#070810
muted
#7A7B7F

Preview Lab

Preview with #183F87

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

Preview Lab → · Contrast checker → · Palette generator →

#183F87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva