#182F7C#182F7C

#182F7C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.134 H 266.4°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#182F7C
RGBrgb(24, 47, 124)
HSLhsl(226, 68%, 29%)
HSVhsv(226, 81%, 49%)
CMYKcmyk(80.6%, 62.1%, 0%, 51.4%)
CIE-LABlab(22.59, 21.38, -46.22)
CIE-LCHlch(22.59, 50.92, 294.83°)
OKLaboklab(34.07% -0.0084 -0.1336)
OKLCHoklch(34.07% 0.134 266.4)
XYZxyz(5.0300, 3.6819, 19.5104)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182F7C #7C6518
analogous
#18617C #182F7C #33187C
triadic
#182F7C #7C182F #2F7C18
tetradic
#182F7C #7C1861 #7C6518 #187C33
square
#182F7C #7C1861 #7C6518 #187C33
split-complementary
#182F7C #7C3318 #617C18
monochromatic
#050A1A #0E1C49 #182F7C #2242AF #365BD8

Accessibility & contrast

On white

12.09
#182F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#182F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182F7C
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182F7C#FFFFFF#000000##FFFFFF
##182F7C1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#004350
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #182f7c;
/* rgb */ color: rgb(24, 47, 124);
/* oklch */ color: oklch(34.1% 0.134 266.4);
Tailwind
colors: {
  custom: {
    50: '#6767a3',
    500: '#182f7c',
    950: '#000000',
  },
}
SCSS
$custom: #182f7c;
$custom-light: #6767a3;
$custom-dark: #000000;
JSON
{
  "hex": "#182f7c",
  "rgb": {
    "r": 24,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 226.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34074,
    "c": 0.13384,
    "h": 266.4
  },
  "luminance": 0.03682
}

Semantic roles & 50–950 ramp

primary
#182F7C
secondary
#B1973F
accent
#C33DEA
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #182F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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