#3051B5#3051B5

#3051B5 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.0% C 0.163 H 266.3°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#3051B5
RGBrgb(48, 81, 181)
HSLhsl(225, 58%, 45%)
HSVhsv(225, 73%, 71%)
CMYKcmyk(73.5%, 55.2%, 0%, 29%)
CIE-LABlab(37.57, 23.36, -56.56)
CIE-LCHlch(37.57, 61.20, 292.44°)
OKLaboklab(47.04% -0.0105 -0.163)
OKLCHoklch(47.04% 0.163 266.3)
XYZxyz(12.4989, 9.8481, 44.9493)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3051B5 #B59430
analogous
#3093B5 #3051B5 #5230B5
triadic
#3051B5 #B53051 #51B530
tetradic
#3051B5 #B53093 #B59430 #30B552
square
#3051B5 #B53093 #B59430 #30B552
split-complementary
#3051B5 #B55230 #93B530
monochromatic
#162654 #233B85 #3051B5 #5171D1 #8298DE

Accessibility & contrast

On white

7.07
#3051B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#3051B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3051B5
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3051B5#FFFFFF#000000##FFFFFF
##3051B51.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#0053B3
Tritanopia (blue-blind)
#00697B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #3051b5;
/* rgb */ color: rgb(48, 81, 181);
/* oklch */ color: oklch(47.0% 0.163 266.3);
Tailwind
colors: {
  custom: {
    50: '#7b81cc',
    500: '#3051b5',
    950: '#000000',
  },
}
SCSS
$custom: #3051b5;
$custom-light: #7b81cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3051b5",
  "rgb": {
    "r": 48,
    "g": 81,
    "b": 181
  },
  "hsl": {
    "h": 225.113,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47037,
    "c": 0.1633,
    "h": 266.3
  },
  "luminance": 0.09849
}

Semantic roles & 50–950 ramp

primary
#3051B5
secondary
#C7B47A
accent
#BB46E1
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #3051B5

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

Preview Lab → · Contrast checker → · Palette generator →

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