#183F7D#183F7D

#183F7D is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.7% C 0.114 H 259.5°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#183F7D
RGBrgb(24, 63, 125)
HSLhsl(217, 68%, 29%)
HSVhsv(217, 81%, 49%)
CMYKcmyk(80.8%, 49.6%, 0%, 51%)
CIE-LABlab(27.38, 10.49, -39.09)
CIE-LCHlch(27.38, 40.47, 285.02°)
OKLaboklab(37.73% -0.0209 -0.1123)
OKLCHoklch(37.73% 0.114 259.5)
XYZxyz(5.8545, 5.2292, 20.0988)
Luminance0.0523 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#183F7D #7D5618
analogous
#18727D #183F7D #24187D
triadic
#183F7D #7D183F #3F7D18
tetradic
#183F7D #7D1872 #7D5618 #187D24
square
#183F7D #7D1872 #7D5618 #187D24
split-complementary
#183F7D #7D2418 #727D18
monochromatic
#050D1A #0E254A #183F7D #2259B0 #3775D9

Accessibility & contrast

On white

10.26
#183F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#183F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #183F7D
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##183F7D#FFFFFF#000000##FFFFFF
##183F7D1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C467F
Deuteranopia (green-blind)
#003C7C
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #183f7d;
/* rgb */ color: rgb(24, 63, 125);
/* oklch */ color: oklch(37.7% 0.114 259.5);
Tailwind
colors: {
  custom: {
    50: '#6673a3',
    500: '#183f7d',
    950: '#000000',
  },
}
SCSS
$custom: #183f7d;
$custom-light: #6673a3;
$custom-dark: #000000;
JSON
{
  "hex": "#183f7d",
  "rgb": {
    "r": 24,
    "g": 63,
    "b": 125
  },
  "hsl": {
    "h": 216.832,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37726,
    "c": 0.11422,
    "h": 259.5
  },
  "luminance": 0.0523
}

Semantic roles & 50–950 ramp

primary
#183F7D
secondary
#B2853F
accent
#A83DEB
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #183F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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