#3A40CA#3A40CA

#3A40CA is a mid, highly saturated blue. Relative luminance 0.088; OKLCH L 46.3% C 0.208 H 272.9°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#3A40CA
RGBrgb(58, 64, 202)
HSLhsl(238, 58%, 51%)
HSVhsv(238, 71%, 79%)
CMYKcmyk(71.3%, 68.3%, 0%, 20.8%)
CIE-LABlab(35.65, 42.89, -71.96)
CIE-LCHlch(35.65, 83.77, 300.79°)
OKLaboklab(46.3% 0.0106 -0.2081)
OKLCHoklch(46.3% 0.208 272.9)
XYZxyz(14.2354, 8.8292, 56.8196)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A40CA #CAC43A
analogous
#3A88CA #3A40CA #7C3ACA
triadic
#3A40CA #CA3A40 #40CA3A
tetradic
#3A40CA #CA3A88 #CAC43A #3ACA7C
square
#3A40CA #CA3A88 #CAC43A #3ACA7C
split-complementary
#3A40CA #CA7C3A #88CA3A
monochromatic
#1D206C #2A2F9D #3A40CA #6A6FD7 #9A9EE4

Accessibility & contrast

On white

7.59
#3A40CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#3A40CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A40CA
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A40CA#FFFFFF#000000##FFFFFF
##3A40CA1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a40ca;
/* rgb */ color: rgb(58, 64, 202);
/* oklch */ color: oklch(46.3% 0.208 272.9);
Tailwind
colors: {
  custom: {
    50: '#8475db',
    500: '#3a40ca',
    950: '#000000',
  },
}
SCSS
$custom: #3a40ca;
$custom-light: #8475db;
$custom-dark: #000000;
JSON
{
  "hex": "#3a40ca",
  "rgb": {
    "r": 58,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 237.5,
    "s": 57.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.46302,
    "c": 0.20833,
    "h": 272.9
  },
  "luminance": 0.08831
}

Semantic roles & 50–950 ramp

primary
#3A40CA
secondary
#D0CD90
accent
#DA47E1
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #3A40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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