#182F87#182F87

#182F87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.1% C 0.149 H 266.8°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#182F87
RGBrgb(24, 47, 135)
HSLhsl(228, 70%, 31%)
HSVhsv(228, 82%, 53%)
CMYKcmyk(82.2%, 65.2%, 0%, 47.1%)
CIE-LABlab(23.59, 25.80, -51.50)
CIE-LCHlch(23.59, 57.60, 296.61°)
OKLaboklab(35.13% -0.0084 -0.1491)
OKLCHoklch(35.13% 0.149 266.8)
XYZxyz(5.7648, 3.9758, 23.3805)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182F87 #877018
analogous
#186687 #182F87 #391887
triadic
#182F87 #87182F #2F8718
tetradic
#182F87 #871866 #877018 #188739
square
#182F87 #871866 #877018 #188739
split-complementary
#182F87 #873918 #668718
monochromatic
#060B1F #0F1D53 #182F87 #2141BB #3D5EDC

Accessibility & contrast

On white

11.70
#182F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#182F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182F87
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182F87#FFFFFF#000000##FFFFFF
##182F871.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #182f87;
/* rgb */ color: rgb(24, 47, 135);
/* oklch */ color: oklch(35.1% 0.149 266.8);
Tailwind
colors: {
  custom: {
    50: '#6a67ab',
    500: '#182f87',
    950: '#000000',
  },
}
SCSS
$custom: #182f87;
$custom-light: #6a67ab;
$custom-dark: #000000;
JSON
{
  "hex": "#182f87",
  "rgb": {
    "r": 24,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 227.568,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35125,
    "c": 0.1493,
    "h": 266.8
  },
  "luminance": 0.03976
}

Semantic roles & 50–950 ramp

primary
#182F87
secondary
#BBA140
accent
#C83BED
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #182F87

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

Preview Lab → · Contrast checker → · Palette generator →

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