#3054C2#3054C2

#3054C2 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.7% C 0.177 H 266.1°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#3054C2
RGBrgb(48, 84, 194)
HSLhsl(225, 60%, 47%)
HSVhsv(225, 75%, 76%)
CMYKcmyk(75.3%, 56.7%, 0%, 23.9%)
CIE-LABlab(39.35, 26.26, -61.28)
CIE-LCHlch(39.35, 66.67, 293.20°)
OKLaboklab(48.68% -0.012 -0.1768)
OKLCHoklch(48.68% 0.177 266.1)
XYZxyz(14.1234, 10.8625, 52.3808)
Luminance0.1086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3054C2 #C29E30
analogous
#309DC2 #3054C2 #5530C2
triadic
#3054C2 #C23054 #54C230
tetradic
#3054C2 #C2309D #C29E30 #30C255
square
#3054C2 #C2309D #C29E30 #30C255
split-complementary
#3054C2 #C25530 #9DC230
monochromatic
#182A60 #243F91 #3054C2 #5978D6 #8AA0E2

Accessibility & contrast

On white

6.62
#3054C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#3054C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3054C2
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3054C2#FFFFFF#000000##FFFFFF
##3054C21.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#006F83
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #3054c2;
/* rgb */ color: rgb(48, 84, 194);
/* oklch */ color: oklch(48.7% 0.177 266.1);
Tailwind
colors: {
  custom: {
    50: '#7d83d5',
    500: '#3054c2',
    950: '#000000',
  },
}
SCSS
$custom: #3054c2;
$custom-light: #7d83d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3054c2",
  "rgb": {
    "r": 48,
    "g": 84,
    "b": 194
  },
  "hsl": {
    "h": 225.205,
    "s": 60.331,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48684,
    "c": 0.17721,
    "h": 266.1
  },
  "luminance": 0.10864
}

Semantic roles & 50–950 ramp

primary
#3054C2
secondary
#CCBA82
accent
#BC44E3
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #3054C2

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

Preview Lab → · Contrast checker → · Palette generator →

#3054C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva