#3A54CF#3A54CF

#3A54CF is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.2% C 0.192 H 269.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#3A54CF
RGBrgb(58, 84, 207)
HSLhsl(230, 61%, 52%)
HSVhsv(230, 72%, 81%)
CMYKcmyk(72%, 59.4%, 0%, 18.8%)
CIE-LABlab(40.81, 32.22, -66.42)
CIE-LCHlch(40.81, 73.83, 295.88°)
OKLaboklab(50.21% -0.0029 -0.1917)
OKLCHoklch(50.21% 0.192 269.1)
XYZxyz(16.1739, 11.7435, 60.4337)
Luminance0.1174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A54CF #CFB53A
analogous
#3A9FCF #3A54CF #6B3ACF
triadic
#3A54CF #CF3A54 #54CF3A
tetradic
#3A54CF #CF3A9F #CFB53A #3ACF6B
square
#3A54CF #CF3A9F #CFB53A #3ACF6B
split-complementary
#3A54CF #CF6B3A #9FCF3A
monochromatic
#1C2B73 #283EA4 #3A54CF #6B7FDB #9CA9E7

Accessibility & contrast

On white

6.27
#3A54CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#3A54CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A54CF
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A54CF#FFFFFF#000000##FFFFFF
##3A54CF1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#0059CD
Tritanopia (blue-blind)
#007389
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #3a54cf;
/* rgb */ color: rgb(58, 84, 207);
/* oklch */ color: oklch(50.2% 0.192 269.1);
Tailwind
colors: {
  custom: {
    50: '#8483df',
    500: '#3a54cf',
    950: '#000000',
  },
}
SCSS
$custom: #3a54cf;
$custom-light: #8483df;
$custom-dark: #000000;
JSON
{
  "hex": "#3a54cf",
  "rgb": {
    "r": 58,
    "g": 84,
    "b": 207
  },
  "hsl": {
    "h": 229.53,
    "s": 60.816,
    "l": 51.961
  },
  "oklch": {
    "l": 0.50212,
    "c": 0.19172,
    "h": 269.1
  },
  "luminance": 0.11745
}

Semantic roles & 50–950 ramp

primary
#3A54CF
secondary
#D3C892
accent
#C844E4
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3A54CF

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

Preview Lab → · Contrast checker → · Palette generator →

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