#3A40CB#3A40CB

#3A40CB is a mid, highly saturated blue. Relative luminance 0.089; OKLCH L 46.4% C 0.210 H 272.9°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#3A40CB
RGBrgb(58, 64, 203)
HSLhsl(238, 58%, 51%)
HSVhsv(238, 71%, 80%)
CMYKcmyk(71.4%, 68.5%, 0%, 20.4%)
CIE-LABlab(35.75, 43.22, -72.39)
CIE-LCHlch(35.75, 84.31, 300.84°)
OKLaboklab(46.4% 0.0105 -0.2093)
OKLCHoklch(46.4% 0.21 272.9)
XYZxyz(14.3542, 8.8767, 57.4452)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40CB #CBC53A
analogous
#3A88CB #3A40CB #7C3ACB
triadic
#3A40CB #CB3A40 #40CB3A
tetradic
#3A40CB #CB3A88 #CBC53A #3ACB7C
square
#3A40CB #CB3A88 #CBC53A #3ACB7C
split-complementary
#3A40CB #CB7C3A #88CB3A
monochromatic
#1D206E #2A2F9E #3A40CB #6A6FD8 #9B9EE5

Accessibility & contrast

On white

7.57
#3A40CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#3A40CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40CB
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40CB#FFFFFF#000000##FFFFFF
##3A40CB1.007.572.787.57
#FFFFFF7.571.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCF
Deuteranopia (green-blind)
#004DC8
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3a40cb;
/* rgb */ color: rgb(58, 64, 203);
/* oklch */ color: oklch(46.4% 0.210 272.9);
Tailwind
colors: {
  custom: {
    50: '#8575dc',
    500: '#3a40cb',
    950: '#000000',
  },
}
SCSS
$custom: #3a40cb;
$custom-light: #8575dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40cb",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 237.517,
    "s": 58.233,
    "l": 51.176
  },
  "oklch": {
    "l": 0.46397,
    "c": 0.20957,
    "h": 272.9
  },
  "luminance": 0.08878
}

Semantic roles & 50–950 ramp

primary
#3A40CB
secondary
#D0CE90
accent
#DB46E1
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #3A40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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