#182C7F#182C7F

#182C7F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.142 H 267.4°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#182C7F
RGBrgb(24, 44, 127)
HSLhsl(228, 68%, 30%)
HSVhsv(228, 81%, 50%)
CMYKcmyk(81.1%, 65.4%, 0%, 50.2%)
CIE-LABlab(22.04, 24.69, -49.01)
CIE-LCHlch(22.04, 54.88, 296.74°)
OKLaboklab(33.75% -0.0065 -0.1418)
OKLCHoklch(33.75% 0.142 267.4)
XYZxyz(5.1068, 3.5273, 20.4862)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#182C7F #7F6B18
analogous
#185F7F #182C7F #38187F
triadic
#182C7F #7F182C #2C7F18
tetradic
#182C7F #7F185F #7F6B18 #187F38
square
#182C7F #7F185F #7F6B18 #187F38
split-complementary
#182C7F #7F3818 #5F7F18
monochromatic
#05091A #0E1A4C #182C7F #223EB2 #3857D9

Accessibility & contrast

On white

12.31
#182C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#182C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #182C7F
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##182C7F#FFFFFF#000000##FFFFFF
##182C7F1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #182c7f;
/* rgb */ color: rgb(24, 44, 127);
/* oklch */ color: oklch(33.8% 0.142 267.4);
Tailwind
colors: {
  custom: {
    50: '#6865a5',
    500: '#182c7f',
    950: '#000000',
  },
}
SCSS
$custom: #182c7f;
$custom-light: #6865a5;
$custom-dark: #000000;
JSON
{
  "hex": "#182c7f",
  "rgb": {
    "r": 24,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 228.35,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33752,
    "c": 0.14195,
    "h": 267.4
  },
  "luminance": 0.03528
}

Semantic roles & 50–950 ramp

primary
#182C7F
secondary
#B39D3F
accent
#C93DEB
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #182C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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