#3051B2#3051B2

#3051B2 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.8% C 0.159 H 266.1°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#3051B2
RGBrgb(48, 81, 178)
HSLhsl(225, 58%, 44%)
HSVhsv(225, 73%, 70%)
CMYKcmyk(73%, 54.5%, 0%, 30.2%)
CIE-LABlab(37.35, 22.24, -55.15)
CIE-LCHlch(37.35, 59.46, 291.96°)
OKLaboklab(46.8% -0.0107 -0.1588)
OKLCHoklch(46.8% 0.159 266.1)
XYZxyz(12.1944, 9.7263, 43.3455)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3051B2 #B29130
analogous
#3092B2 #3051B2 #5030B2
triadic
#3051B2 #B23051 #51B230
tetradic
#3051B2 #B23092 #B29130 #30B250
square
#3051B2 #B23092 #B29130 #30B250
split-complementary
#3051B2 #B25030 #92B230
monochromatic
#162552 #233B82 #3051B2 #5070D0 #8097DD

Accessibility & contrast

On white

7.13
#3051B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#3051B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3051B2
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3051B2#FFFFFF#000000##FFFFFF
##3051B21.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3051b2;
/* rgb */ color: rgb(48, 81, 178);
/* oklch */ color: oklch(46.8% 0.159 266.1);
Tailwind
colors: {
  custom: {
    50: '#7a81ca',
    500: '#3051b2',
    950: '#000000',
  },
}
SCSS
$custom: #3051b2;
$custom-light: #7a81ca;
$custom-dark: #000000;
JSON
{
  "hex": "#3051b2",
  "rgb": {
    "r": 48,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 224.769,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.468,
    "c": 0.15917,
    "h": 266.1
  },
  "luminance": 0.09728
}

Semantic roles & 50–950 ramp

primary
#3051B2
secondary
#C6B278
accent
#BA47E1
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #3051B2

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

Preview Lab → · Contrast checker → · Palette generator →

#3051B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva