#3051BA#3051BA

#3051BA is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.4% C 0.170 H 266.6°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#3051BA
RGBrgb(48, 81, 186)
HSLhsl(226, 59%, 46%)
HSVhsv(226, 74%, 73%)
CMYKcmyk(74.2%, 56.5%, 0%, 27.1%)
CIE-LABlab(37.94, 25.24, -58.89)
CIE-LCHlch(37.94, 64.07, 293.20°)
OKLaboklab(47.44% -0.0102 -0.1698)
OKLCHoklch(47.44% 0.17 266.6)
XYZxyz(13.0212, 10.0570, 47.6998)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3051BA #BA9930
analogous
#3096BA #3051BA #5430BA
triadic
#3051BA #BA3051 #51BA30
tetradic
#3051BA #BA3096 #BA9930 #30BA54
square
#3051BA #BA3096 #BA9930 #30BA54
split-complementary
#3051BA #BA5430 #96BA30
monochromatic
#172759 #233C89 #3051BA #5473D3 #859BDF

Accessibility & contrast

On white

6.97
#3051BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#3051BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3051BA
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3051BA#FFFFFF#000000##FFFFFF
##3051BA1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0053B8
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #3051ba;
/* rgb */ color: rgb(48, 81, 186);
/* oklch */ color: oklch(47.4% 0.170 266.6);
Tailwind
colors: {
  custom: {
    50: '#7c81d0',
    500: '#3051ba',
    950: '#000000',
  },
}
SCSS
$custom: #3051ba;
$custom-light: #7c81d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3051ba",
  "rgb": {
    "r": 48,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 225.652,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47439,
    "c": 0.17012,
    "h": 266.6
  },
  "luminance": 0.10058
}

Semantic roles & 50–950 ramp

primary
#3051BA
secondary
#C9B77D
accent
#BD46E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #3051BA

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

Preview Lab → · Contrast checker → · Palette generator →

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