#183F8E#183F8E

#183F8E is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.1% C 0.139 H 262.3°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#183F8E
RGBrgb(24, 63, 142)
HSLhsl(220, 71%, 33%)
HSVhsv(220, 83%, 56%)
CMYKcmyk(83.1%, 55.6%, 0%, 44.3%)
CIE-LABlab(28.65, 17.49, -47.60)
CIE-LCHlch(28.65, 50.71, 290.17°)
OKLaboklab(39.1% -0.0186 -0.1373)
OKLCHoklch(39.1% 0.139 262.3)
XYZxyz(7.0349, 5.7014, 26.3156)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#183F8E #8E6718
analogous
#187A8E #183F8E #2C188E
triadic
#183F8E #8E183F #3F8E18
tetradic
#183F8E #8E187A #8E6718 #188E2C
square
#183F8E #8E187A #8E6718 #188E2C
split-complementary
#183F8E #8E2C18 #7A8E18
monochromatic
#061125 #0F285A #183F8E #2156C2 #4176DF

Accessibility & contrast

On white

9.81
#183F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#183F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #183F8E
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##183F8E#FFFFFF#000000##FFFFFF
##183F8E1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #183f8e;
/* rgb */ color: rgb(24, 63, 142);
/* oklch */ color: oklch(39.1% 0.139 262.3);
Tailwind
colors: {
  custom: {
    50: '#6a73b0',
    500: '#183f8e',
    950: '#000000',
  },
}
SCSS
$custom: #183f8e;
$custom-light: #6a73b0;
$custom-dark: #000000;
JSON
{
  "hex": "#183f8e",
  "rgb": {
    "r": 24,
    "g": 63,
    "b": 142
  },
  "hsl": {
    "h": 220.169,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39097,
    "c": 0.13861,
    "h": 262.3
  },
  "luminance": 0.05702
}

Semantic roles & 50–950 ramp

primary
#183F8E
secondary
#C09642
accent
#B23AEE
background
#F6F6FA
surface
#ECECF5
border
#C7C7CF
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #183F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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