#3A5FE3#3A5FE3

#3A5FE3 is a mid, highly saturated blue. Relative luminance 0.146; OKLCH L 53.9% C 0.205 H 267.1°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#3A5FE3
RGBrgb(58, 95, 227)
HSLhsl(227, 75%, 56%)
HSVhsv(227, 74%, 89%)
CMYKcmyk(74.4%, 58.1%, 0%, 11%)
CIE-LABlab(45.12, 32.44, -70.81)
CIE-LCHlch(45.12, 77.89, 294.61°)
OKLaboklab(53.91% -0.0102 -0.2044)
OKLCHoklch(53.91% 0.205 267.1)
XYZxyz(19.6974, 14.6279, 74.4435)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5FE3 #E3BE3A
analogous
#3AB3E3 #3A5FE3 #693AE3
triadic
#3A5FE3 #E33A5F #5FE33A
tetradic
#3A5FE3 #E33AB3 #E3BE3A #3AE369
square
#3A5FE3 #E33AB3 #E3BE3A #3AE369
split-complementary
#3A5FE3 #E3693A #B3E33A
monochromatic
#142F8E #1C41C4 #3A5FE3 #708BEB #A5B6F2

Accessibility & contrast

On white

5.35
#3A5FE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#3A5FE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5FE3
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5FE3#FFFFFF#000000##FFFFFF
##3A5FE31.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E7
Deuteranopia (green-blind)
#0063E0
Tritanopia (blue-blind)
#008098
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #3a5fe3;
/* rgb */ color: rgb(58, 95, 227);
/* oklch */ color: oklch(53.9% 0.205 267.1);
Tailwind
colors: {
  custom: {
    50: '#878ced',
    500: '#3a5fe3',
    950: '#000000',
  },
}
SCSS
$custom: #3a5fe3;
$custom-light: #878ced;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5fe3",
  "rgb": {
    "r": 58,
    "g": 95,
    "b": 227
  },
  "hsl": {
    "h": 226.864,
    "s": 75.111,
    "l": 55.882
  },
  "oklch": {
    "l": 0.53913,
    "c": 0.20471,
    "h": 267.1
  },
  "luminance": 0.1463
}

Semantic roles & 50–950 ramp

primary
#3A5FE3
secondary
#DFD099
accent
#C936F2
background
#F9F8FE
surface
#F1F0FD
border
#CBCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #3A5FE3

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

Preview Lab → · Contrast checker → · Palette generator →

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