#3062B2#3062B2

#3062B2 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.4% C 0.138 H 259.4°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#3062B2
RGBrgb(48, 98, 178)
HSLhsl(217, 58%, 44%)
HSVhsv(217, 73%, 70%)
CMYKcmyk(73%, 44.9%, 0%, 30.2%)
CIE-LABlab(42.12, 11.14, -47.46)
CIE-LCHlch(42.12, 48.75, 283.20°)
OKLaboklab(50.44% -0.0253 -0.1359)
OKLCHoklch(50.44% 0.138 259.4)
XYZxyz(13.6196, 12.5766, 43.8206)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3062B2 #B28030
analogous
#30A3B2 #3062B2 #3F30B2
triadic
#3062B2 #B23062 #62B230
tetradic
#3062B2 #B230A3 #B28030 #30B23F
square
#3062B2 #B230A3 #B28030 #30B23F
split-complementary
#3062B2 #B23F30 #A3B230
monochromatic
#162D52 #234782 #3062B2 #5081D0 #80A3DD

Accessibility & contrast

On white

5.97
#3062B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#3062B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3062B2
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3062B2#FFFFFF#000000##FFFFFF
##3062B21.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A6AB5
Deuteranopia (green-blind)
#205EB0
Tritanopia (blue-blind)
#007581
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #3062b2;
/* rgb */ color: rgb(48, 98, 178);
/* oklch */ color: oklch(50.4% 0.138 259.4);
Tailwind
colors: {
  custom: {
    50: '#798ec9',
    500: '#3062b2',
    950: '#000000',
  },
}
SCSS
$custom: #3062b2;
$custom-light: #798ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#3062b2",
  "rgb": {
    "r": 48,
    "g": 98,
    "b": 178
  },
  "hsl": {
    "h": 216.923,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50444,
    "c": 0.13822,
    "h": 259.4
  },
  "luminance": 0.12578
}

Semantic roles & 50–950 ramp

primary
#3062B2
secondary
#C6A878
accent
#A647E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #3062B2

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

Preview Lab → · Contrast checker → · Palette generator →

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