#183D7E#183D7E

#183D7E is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.3% C 0.118 H 260.7°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#183D7E
RGBrgb(24, 61, 126)
HSLhsl(218, 68%, 29%)
HSVhsv(218, 81%, 49%)
CMYKcmyk(81%, 51.6%, 0%, 50.6%)
CIE-LABlab(26.84, 12.30, -40.58)
CIE-LCHlch(26.84, 42.40, 286.87°)
OKLaboklab(37.34% -0.019 -0.1167)
OKLCHoklch(37.34% 0.118 260.7)
XYZxyz(5.8100, 5.0374, 20.4007)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#183D7E #7E5918
analogous
#18707E #183D7E #26187E
triadic
#183D7E #7E183D #3D7E18
tetradic
#183D7E #7E1870 #7E5918 #187E26
square
#183D7E #7E1870 #7E5918 #187E26
split-complementary
#183D7E #7E2618 #707E18
monochromatic
#050C1A #0E244B #183D7E #2256B1 #3772D9

Accessibility & contrast

On white

10.46
#183D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#183D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #183D7E
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##183D7E#FFFFFF#000000##FFFFFF
##183D7E1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164480
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #183d7e;
/* rgb */ color: rgb(24, 61, 126);
/* oklch */ color: oklch(37.3% 0.118 260.7);
Tailwind
colors: {
  custom: {
    50: '#6671a4',
    500: '#183d7e',
    950: '#000000',
  },
}
SCSS
$custom: #183d7e;
$custom-light: #6671a4;
$custom-dark: #000000;
JSON
{
  "hex": "#183d7e",
  "rgb": {
    "r": 24,
    "g": 61,
    "b": 126
  },
  "hsl": {
    "h": 218.235,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37337,
    "c": 0.11827,
    "h": 260.7
  },
  "luminance": 0.05038
}

Semantic roles & 50–950 ramp

primary
#183D7E
secondary
#B2893F
accent
#AC3DEB
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #183D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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