#183F7C#183F7C

#183F7C is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.6% C 0.113 H 259.2°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#183F7C
RGBrgb(24, 63, 124)
HSLhsl(217, 68%, 29%)
HSVhsv(217, 81%, 49%)
CMYKcmyk(80.6%, 49.2%, 0%, 51.4%)
CIE-LABlab(27.31, 10.08, -38.57)
CIE-LCHlch(27.31, 39.87, 284.64°)
OKLaboklab(37.65% -0.021 -0.1108)
OKLCHoklch(37.65% 0.113 259.2)
XYZxyz(5.7910, 5.2038, 19.7641)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#183F7C #7C5518
analogous
#18717C #183F7C #23187C
triadic
#183F7C #7C183F #3F7C18
tetradic
#183F7C #7C1871 #7C5518 #187C23
square
#183F7C #7C1871 #7C5518 #187C23
split-complementary
#183F7C #7C2318 #717C18
monochromatic
#050D1A #0E2549 #183F7C #2259AF #3675D8

Accessibility & contrast

On white

10.29
#183F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#183F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #183F7C
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##183F7C#FFFFFF#000000##FFFFFF
##183F7C1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D457E
Deuteranopia (green-blind)
#013C7B
Tritanopia (blue-blind)
#004E57
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #183f7c;
/* rgb */ color: rgb(24, 63, 124);
/* oklch */ color: oklch(37.6% 0.113 259.2);
Tailwind
colors: {
  custom: {
    50: '#6673a2',
    500: '#183f7c',
    950: '#000000',
  },
}
SCSS
$custom: #183f7c;
$custom-light: #6673a2;
$custom-dark: #000000;
JSON
{
  "hex": "#183f7c",
  "rgb": {
    "r": 24,
    "g": 63,
    "b": 124
  },
  "hsl": {
    "h": 216.6,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37649,
    "c": 0.11276,
    "h": 259.2
  },
  "luminance": 0.05204
}

Semantic roles & 50–950 ramp

primary
#183F7C
secondary
#B1843F
accent
#A73DEA
background
#F6F6FA
surface
#EBECF3
border
#C6C7CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #183F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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