#3A40B3#3A40B3

#3A40B3 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.2% C 0.179 H 274.1°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#3A40B3
RGBrgb(58, 64, 179)
HSLhsl(237, 51%, 46%)
HSVhsv(237, 68%, 70%)
CMYKcmyk(67.6%, 64.2%, 0%, 29.8%)
CIE-LABlab(33.60, 35.00, -61.81)
CIE-LCHlch(33.60, 71.03, 299.52°)
OKLaboklab(44.19% 0.0128 -0.1783)
OKLCHoklch(44.19% 0.179 274.1)
XYZxyz(11.7123, 7.8199, 43.5313)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40B3 #B3AD3A
analogous
#3A7DB3 #3A40B3 #713AB3
triadic
#3A40B3 #B33A40 #40B33A
tetradic
#3A40B3 #B33A7D #B3AD3A #3AB371
square
#3A40B3 #B33A7D #B3AD3A #3AB371
split-complementary
#3A40B3 #B3713A #7DB33A
monochromatic
#1C1F57 #2B2F85 #3A40B3 #5F64CB #8D91DA

Accessibility & contrast

On white

8.19
#3A40B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3A40B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40B3
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40B3#FFFFFF#000000##FFFFFF
##3A40B31.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#004AB1
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3a40b3;
/* rgb */ color: rgb(58, 64, 179);
/* oklch */ color: oklch(44.2% 0.179 274.1);
Tailwind
colors: {
  custom: {
    50: '#7f75cb',
    500: '#3a40b3',
    950: '#000000',
  },
}
SCSS
$custom: #3a40b3;
$custom-light: #7f75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40b3",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 237.025,
    "s": 51.055,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44185,
    "c": 0.17881,
    "h": 274.1
  },
  "luminance": 0.07821
}

Semantic roles & 50–950 ramp

primary
#3A40B3
secondary
#C5C284
accent
#D44DDB
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3A40B3

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

Preview Lab → · Contrast checker → · Palette generator →

#3A40B3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva