#3062B4#3062B4

#3062B4 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.6% C 0.141 H 259.8°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#3062B4
RGBrgb(48, 98, 180)
HSLhsl(217, 58%, 45%)
HSVhsv(217, 73%, 71%)
CMYKcmyk(73.3%, 45.6%, 0%, 29.4%)
CIE-LABlab(42.24, 11.89, -48.43)
CIE-LCHlch(42.24, 49.87, 283.79°)
OKLaboklab(50.58% -0.0249 -0.1388)
OKLCHoklch(50.58% 0.141 259.8)
XYZxyz(13.8218, 12.6575, 44.8859)
Luminance0.1266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3062B4 #B48230
analogous
#30A4B4 #3062B4 #4030B4
triadic
#3062B4 #B43062 #62B430
tetradic
#3062B4 #B430A4 #B48230 #30B440
square
#3062B4 #B430A4 #B48230 #30B440
split-complementary
#3062B4 #B44030 #A4B430
monochromatic
#162D53 #234884 #3062B4 #5181D1 #81A4DD

Accessibility & contrast

On white

5.95
#3062B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#3062B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3062B4
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3062B4#FFFFFF#000000##FFFFFF
##3062B41.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#386AB7
Deuteranopia (green-blind)
#1C5EB2
Tritanopia (blue-blind)
#007582
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #3062b4;
/* rgb */ color: rgb(48, 98, 180);
/* oklch */ color: oklch(50.6% 0.141 259.8);
Tailwind
colors: {
  custom: {
    50: '#7a8ecb',
    500: '#3062b4',
    950: '#000000',
  },
}
SCSS
$custom: #3062b4;
$custom-light: #7a8ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#3062b4",
  "rgb": {
    "r": 48,
    "g": 98,
    "b": 180
  },
  "hsl": {
    "h": 217.273,
    "s": 57.895,
    "l": 44.706
  },
  "oklch": {
    "l": 0.5058,
    "c": 0.14098,
    "h": 259.8
  },
  "luminance": 0.12659
}

Semantic roles & 50–950 ramp

primary
#3062B4
secondary
#C6A979
accent
#A747E1
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #3062B4

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

Preview Lab → · Contrast checker → · Palette generator →

#3062B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva