#3A5ACA#3A5ACA

#3A5ACA is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.0% C 0.178 H 267.6°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#3A5ACA
RGBrgb(58, 90, 202)
HSLhsl(227, 58%, 51%)
HSVhsv(227, 71%, 79%)
CMYKcmyk(71.3%, 55.4%, 0%, 20.8%)
CIE-LABlab(41.96, 26.58, -61.66)
CIE-LCHlch(41.96, 67.14, 293.32°)
OKLaboklab(50.96% -0.0075 -0.1776)
OKLCHoklch(50.96% 0.178 267.6)
XYZxyz(16.0581, 12.4745, 57.4272)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A5ACA #CAAA3A
analogous
#3AA2CA #3A5ACA #623ACA
triadic
#3A5ACA #CA3A5A #5ACA3A
tetradic
#3A5ACA #CA3AA2 #CAAA3A #3ACA62
square
#3A5ACA #CA3AA2 #CAAA3A #3ACA62
split-complementary
#3A5ACA #CA623A #A2CA3A
monochromatic
#1D2F6C #2A449D #3A5ACA #6A82D7 #9AABE4

Accessibility & contrast

On white

6.01
#3A5ACA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#3A5ACA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A5ACA
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A5ACA#FFFFFF#000000##FFFFFF
##3A5ACA1.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACE
Deuteranopia (green-blind)
#005DC8
Tritanopia (blue-blind)
#007589
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3a5aca;
/* rgb */ color: rgb(58, 90, 202);
/* oklch */ color: oklch(51.0% 0.178 267.6);
Tailwind
colors: {
  custom: {
    50: '#8288db',
    500: '#3a5aca',
    950: '#000000',
  },
}
SCSS
$custom: #3a5aca;
$custom-light: #8288db;
$custom-dark: #000000;
JSON
{
  "hex": "#3a5aca",
  "rgb": {
    "r": 58,
    "g": 90,
    "b": 202
  },
  "hsl": {
    "h": 226.667,
    "s": 57.6,
    "l": 50.98
  },
  "oklch": {
    "l": 0.50956,
    "c": 0.17778,
    "h": 267.6
  },
  "luminance": 0.12476
}

Semantic roles & 50–950 ramp

primary
#3A5ACA
secondary
#D0C290
accent
#BF47E1
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #3A5ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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