#3A54CB#3A54CB

#3A54CB is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.9% C 0.186 H 269.1°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#3A54CB
RGBrgb(58, 84, 203)
HSLhsl(229, 58%, 51%)
HSVhsv(229, 71%, 80%)
CMYKcmyk(71.4%, 58.6%, 0%, 20.4%)
CIE-LABlab(40.49, 30.79, -64.62)
CIE-LCHlch(40.49, 71.58, 295.47°)
OKLaboklab(49.88% -0.0029 -0.1864)
OKLCHoklch(49.88% 0.186 269.1)
XYZxyz(15.6910, 11.5504, 57.8908)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A54CB #CBB13A
analogous
#3A9CCB #3A54CB #683ACB
triadic
#3A54CB #CB3A54 #54CB3A
tetradic
#3A54CB #CB3A9C #CBB13A #3ACB68
square
#3A54CB #CB3A9C #CBB13A #3ACB68
split-complementary
#3A54CB #CB683A #9CCB3A
monochromatic
#1D2B6E #2A3F9E #3A54CB #6A7ED8 #9BA8E5

Accessibility & contrast

On white

6.34
#3A54CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#3A54CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A54CB
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A54CB#FFFFFF#000000##FFFFFF
##3A54CB1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#0059C9
Tritanopia (blue-blind)
#007287
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3a54cb;
/* rgb */ color: rgb(58, 84, 203);
/* oklch */ color: oklch(49.9% 0.186 269.1);
Tailwind
colors: {
  custom: {
    50: '#8383dc',
    500: '#3a54cb',
    950: '#000000',
  },
}
SCSS
$custom: #3a54cb;
$custom-light: #8383dc;
$custom-dark: #000000;
JSON
{
  "hex": "#3a54cb",
  "rgb": {
    "r": 58,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 229.241,
    "s": 58.233,
    "l": 51.176
  },
  "oklch": {
    "l": 0.49881,
    "c": 0.18643,
    "h": 269.1
  },
  "luminance": 0.11552
}

Semantic roles & 50–950 ramp

primary
#3A54CB
secondary
#D0C590
accent
#C646E1
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3A54CB

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

Preview Lab → · Contrast checker → · Palette generator →

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