#183E7F#183E7F

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

Color values

HEX#183E7F
RGBrgb(24, 62, 127)
HSLhsl(218, 68%, 30%)
HSVhsv(218, 81%, 50%)
CMYKcmyk(81.1%, 51.2%, 0%, 50.2%)
CIE-LABlab(27.22, 12.02, -40.60)
CIE-LCHlch(27.22, 42.34, 286.49°)
OKLaboklab(37.65% -0.0197 -0.1168)
OKLCHoklch(37.65% 0.118 260.4)
XYZxyz(5.9287, 5.1711, 20.7602)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#183E7F #7F5918
analogous
#18727F #183E7F #26187F
triadic
#183E7F #7F183E #3E7F18
tetradic
#183E7F #7F1872 #7F5918 #187F26
square
#183E7F #7F1872 #7F5918 #187F26
split-complementary
#183E7F #7F2618 #727F18
monochromatic
#050D1A #0E254C #183E7F #2257B2 #3874D9

Accessibility & contrast

On white

10.32
#183E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#183E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #183E7F
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##183E7F#FFFFFF#000000##FFFFFF
##183E7F1.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174581
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004E58
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #183e7f;
/* rgb */ color: rgb(24, 62, 127);
/* oklch */ color: oklch(37.6% 0.118 260.4);
Tailwind
colors: {
  custom: {
    50: '#6672a5',
    500: '#183e7f',
    950: '#000000',
  },
}
SCSS
$custom: #183e7f;
$custom-light: #6672a5;
$custom-dark: #000000;
JSON
{
  "hex": "#183e7f",
  "rgb": {
    "r": 24,
    "g": 62,
    "b": 127
  },
  "hsl": {
    "h": 217.864,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37648,
    "c": 0.11842,
    "h": 260.4
  },
  "luminance": 0.05172
}

Semantic roles & 50–950 ramp

primary
#183E7F
secondary
#B3893F
accent
#AB3DEB
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07070F
muted
#7A7A7F

Preview Lab

Preview with #183E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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