#3940B8#3940B8

#3940B8 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.6% C 0.186 H 273.5°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#3940B8
RGBrgb(57, 64, 184)
HSLhsl(237, 53%, 47%)
HSVhsv(237, 69%, 72%)
CMYKcmyk(69%, 65.2%, 0%, 27.8%)
CIE-LABlab(33.98, 36.60, -64.17)
CIE-LCHlch(33.98, 73.87, 299.70°)
OKLaboklab(44.57% 0.0113 -0.1853)
OKLCHoklch(44.57% 0.186 273.5)
XYZxyz(12.1696, 7.9962, 46.2402)
Luminance0.0800 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3940B8 #B8B139
analogous
#3980B8 #3940B8 #7239B8
triadic
#3940B8 #B83940 #40B839
tetradic
#3940B8 #B83980 #B8B139 #39B872
square
#3940B8 #B83980 #B8B139 #39B872
split-complementary
#3940B8 #B87239 #80B839
monochromatic
#1C1F5B #2B3089 #3940B8 #6066CE #8F93DC

Accessibility & contrast

On white

8.08
#3940B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#3940B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3940B8
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3940B8#FFFFFF#000000##FFFFFF
##3940B81.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#004AB6
Tritanopia (blue-blind)
#005F76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3940b8;
/* rgb */ color: rgb(57, 64, 184);
/* oklch */ color: oklch(44.6% 0.186 273.5);
Tailwind
colors: {
  custom: {
    50: '#8075ce',
    500: '#3940b8',
    950: '#000000',
  },
}
SCSS
$custom: #3940b8;
$custom-light: #8075ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3940b8",
  "rgb": {
    "r": 57,
    "g": 64,
    "b": 184
  },
  "hsl": {
    "h": 236.693,
    "s": 52.697,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44572,
    "c": 0.18562,
    "h": 273.5
  },
  "luminance": 0.07997
}

Semantic roles & 50–950 ramp

primary
#3940B8
secondary
#C7C386
accent
#D44CDC
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #3940B8

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

Preview Lab → · Contrast checker → · Palette generator →

#3940B8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva