#182F7F#182F7F

#182F7F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.4% C 0.138 H 266.5°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#182F7F
RGBrgb(24, 47, 127)
HSLhsl(227, 68%, 30%)
HSVhsv(227, 81%, 50%)
CMYKcmyk(81.1%, 63%, 0%, 50.2%)
CIE-LABlab(22.86, 22.60, -47.68)
CIE-LCHlch(22.86, 52.76, 295.36°)
OKLaboklab(34.36% -0.0084 -0.1378)
OKLCHoklch(34.36% 0.138 266.5)
XYZxyz(5.2226, 3.7589, 20.5249)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182F7F #7F6818
analogous
#18637F #182F7F #35187F
triadic
#182F7F #7F182F #2F7F18
tetradic
#182F7F #7F1863 #7F6818 #187F35
square
#182F7F #7F1863 #7F6818 #187F35
split-complementary
#182F7F #7F3518 #637F18
monochromatic
#050A1A #0E1C4C #182F7F #2242B2 #385CD9

Accessibility & contrast

On white

11.99
#182F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #182F7F
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182F7F#FFFFFF#000000##FFFFFF
##182F7F1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #182f7f;
/* rgb */ color: rgb(24, 47, 127);
/* oklch */ color: oklch(34.4% 0.138 266.5);
Tailwind
colors: {
  custom: {
    50: '#6767a5',
    500: '#182f7f',
    950: '#000000',
  },
}
SCSS
$custom: #182f7f;
$custom-light: #6767a5;
$custom-dark: #000000;
JSON
{
  "hex": "#182f7f",
  "rgb": {
    "r": 24,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 226.602,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34356,
    "c": 0.13811,
    "h": 266.5
  },
  "luminance": 0.0376
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #182F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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