#3A7DF2#3A7DF2

#3A7DF2 is a mid, vivid blue. Relative luminance 0.220; OKLCH L 61.0% C 0.189 H 260.7°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#3A7DF2
RGBrgb(58, 125, 242)
HSLhsl(218, 88%, 59%)
HSVhsv(218, 76%, 95%)
CMYKcmyk(76%, 48.3%, 0%, 5.1%)
CIE-LABlab(54.00, 19.06, -64.83)
CIE-LCHlch(54.00, 67.57, 286.38°)
OKLaboklab(60.97% -0.0306 -0.1864)
OKLCHoklch(60.97% 0.189 260.7)
XYZxyz(25.0997, 21.9747, 86.9059)
Luminance0.2198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A7DF2 #F2AF3A
analogous
#3AD9F2 #3A7DF2 #533AF2
triadic
#3A7DF2 #F23A7D #7DF23A
tetradic
#3A7DF2 #F23AD9 #F2AF3A #3AF253
square
#3A7DF2 #F23AD9 #F2AF3A #3AF253
split-complementary
#3A7DF2 #F2533A #D9F23A
monochromatic
#0B44A7 #0F5BE0 #3A7DF2 #73A3F6 #ADC9FA

Accessibility & contrast

On white

3.89
#3A7DF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#3A7DF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #3A7DF2
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A7DF2#FFFFFF#000000##000000
##3A7DF21.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#398AF6
Deuteranopia (green-blind)
#0079F0
Tritanopia (blue-blind)
#0099AC
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #3a7df2;
/* rgb */ color: rgb(58, 125, 242);
/* oklch */ color: oklch(61.0% 0.189 260.7);
Tailwind
colors: {
  custom: {
    50: '#89a1f7',
    500: '#3a7df2',
    950: '#000000',
  },
}
SCSS
$custom: #3a7df2;
$custom-light: #89a1f7;
$custom-dark: #000000;
JSON
{
  "hex": "#3a7df2",
  "rgb": {
    "r": 58,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 218.152,
    "s": 87.619,
    "l": 58.824
  },
  "oklch": {
    "l": 0.60968,
    "c": 0.18886,
    "h": 260.7
  },
  "luminance": 0.21978
}

Semantic roles & 50–950 ramp

primary
#3A7DF2
secondary
#E8CEA0
accent
#B12AFE
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0D0E17
muted
#7E7E85

Preview Lab

Preview with #3A7DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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