#3A3FDB#3A3FDB

#3A3FDB is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.8% C 0.230 H 272.2°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#3A3FDB
RGBrgb(58, 63, 219)
HSLhsl(238, 69%, 54%)
HSVhsv(238, 74%, 86%)
CMYKcmyk(73.5%, 71.2%, 0%, 14.1%)
CIE-LABlab(37.05, 49.13, -79.47)
CIE-LCHlch(37.05, 93.44, 301.73°)
OKLaboklab(47.8% 0.0089 -0.23)
OKLCHoklch(47.8% 0.23 272.2)
XYZxyz(16.3043, 9.5673, 67.9915)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3FDB #DBD63A
analogous
#3A8FDB #3A3FDB #863ADB
triadic
#3A3FDB #DB3A3F #3FDB3A
tetradic
#3A3FDB #DB3A8F #DBD63A #3ADB86
square
#3A3FDB #DB3A8F #DBD63A #3ADB86
split-complementary
#3A3FDB #DB863A #8FDB3A
monochromatic
#181B83 #2126B6 #3A3FDB #6E71E4 #A1A4EE

Accessibility & contrast

On white

7.21
#3A3FDB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#3A3FDB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3FDB
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3FDB#FFFFFF#000000##FFFFFF
##3A3FDB1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FE0
Deuteranopia (green-blind)
#004FD8
Tritanopia (blue-blind)
#006B89
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #3a3fdb;
/* rgb */ color: rgb(58, 63, 219);
/* oklch */ color: oklch(47.8% 0.230 272.2);
Tailwind
colors: {
  custom: {
    50: '#8875e8',
    500: '#3a3fdb',
    950: '#000000',
  },
}
SCSS
$custom: #3a3fdb;
$custom-light: #8875e8;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3fdb",
  "rgb": {
    "r": 58,
    "g": 63,
    "b": 219
  },
  "hsl": {
    "h": 238.137,
    "s": 69.099,
    "l": 54.314
  },
  "oklch": {
    "l": 0.47796,
    "c": 0.23015,
    "h": 272.2
  },
  "luminance": 0.09569
}

Semantic roles & 50–950 ramp

primary
#3A3FDB
secondary
#DBD896
accent
#E63CEC
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #3A3FDB

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

Preview Lab → · Contrast checker → · Palette generator →

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