#182F7E#182F7E

#182F7E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.137 H 266.5°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#182F7E
RGBrgb(24, 47, 126)
HSLhsl(226, 68%, 29%)
HSVhsv(226, 81%, 49%)
CMYKcmyk(81%, 62.7%, 0%, 50.6%)
CIE-LABlab(22.77, 22.19, -47.19)
CIE-LCHlch(22.77, 52.15, 295.19°)
OKLaboklab(34.26% -0.0084 -0.1364)
OKLCHoklch(34.26% 0.137 266.5)
XYZxyz(5.1578, 3.7330, 20.1833)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182F7E #7E6718
analogous
#18627E #182F7E #34187E
triadic
#182F7E #7E182F #2F7E18
tetradic
#182F7E #7E1862 #7E6718 #187E34
square
#182F7E #7E1862 #7E6718 #187E34
split-complementary
#182F7E #7E3418 #627E18
monochromatic
#050A1A #0E1C4B #182F7E #2242B1 #375CD9

Accessibility & contrast

On white

12.02
#182F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#182F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182F7E
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182F7E#FFFFFF#000000##FFFFFF
##182F7E1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #182f7e;
/* rgb */ color: rgb(24, 47, 126);
/* oklch */ color: oklch(34.3% 0.137 266.5);
Tailwind
colors: {
  custom: {
    50: '#6767a4',
    500: '#182f7e',
    950: '#000000',
  },
}
SCSS
$custom: #182f7e;
$custom-light: #6767a4;
$custom-dark: #000000;
JSON
{
  "hex": "#182f7e",
  "rgb": {
    "r": 24,
    "g": 47,
    "b": 126
  },
  "hsl": {
    "h": 226.471,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34261,
    "c": 0.13669,
    "h": 266.5
  },
  "luminance": 0.03734
}

Semantic roles & 50–950 ramp

primary
#182F7E
secondary
#B2983F
accent
#C43DEB
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #182F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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