#183F7E#183F7E

#183F7E is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.8% C 0.116 H 259.7°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#183F7E
RGBrgb(24, 63, 126)
HSLhsl(217, 68%, 29%)
HSVhsv(217, 81%, 49%)
CMYKcmyk(81%, 50%, 0%, 50.6%)
CIE-LABlab(27.45, 10.90, -39.60)
CIE-LCHlch(27.45, 41.07, 285.39°)
OKLaboklab(37.8% -0.0207 -0.1138)
OKLCHoklch(37.8% 0.116 259.7)
XYZxyz(5.9187, 5.2549, 20.4370)
Luminance0.0526 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#183F7E #7E5718
analogous
#18727E #183F7E #24187E
triadic
#183F7E #7E183F #3F7E18
tetradic
#183F7E #7E1872 #7E5718 #187E24
square
#183F7E #7E1872 #7E5718 #187E24
split-complementary
#183F7E #7E2418 #727E18
monochromatic
#050D1A #0E254B #183F7E #2259B1 #3775D9

Accessibility & contrast

On white

10.24
#183F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #183F7E
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##183F7E#FFFFFF#000000##FFFFFF
##183F7E1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #183f7e;
/* rgb */ color: rgb(24, 63, 126);
/* oklch */ color: oklch(37.8% 0.116 259.7);
Tailwind
colors: {
  custom: {
    50: '#6673a4',
    500: '#183f7e',
    950: '#000000',
  },
}
SCSS
$custom: #183f7e;
$custom-light: #6673a4;
$custom-dark: #000000;
JSON
{
  "hex": "#183f7e",
  "rgb": {
    "r": 24,
    "g": 63,
    "b": 126
  },
  "hsl": {
    "h": 217.059,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.37803,
    "c": 0.11567,
    "h": 259.7
  },
  "luminance": 0.05256
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #183F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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