#3062BA#3062BA

#3062BA is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.0% C 0.149 H 260.8°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#3062BA
RGBrgb(48, 98, 186)
HSLhsl(218, 59%, 46%)
HSVhsv(218, 74%, 73%)
CMYKcmyk(74.2%, 47.3%, 0%, 27.1%)
CIE-LABlab(42.62, 14.15, -51.33)
CIE-LCHlch(42.62, 53.24, 285.41°)
OKLaboklab(51% -0.0239 -0.1473)
OKLCHoklch(51% 0.149 260.8)
XYZxyz(14.4463, 12.9073, 48.1749)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3062BA #BA8830
analogous
#30A7BA #3062BA #4330BA
triadic
#3062BA #BA3062 #62BA30
tetradic
#3062BA #BA30A7 #BA8830 #30BA43
square
#3062BA #BA30A7 #BA8830 #30BA43
split-complementary
#3062BA #BA4330 #A7BA30
monochromatic
#172F59 #234889 #3062BA #5482D3 #85A6DF

Accessibility & contrast

On white

5.86
#3062BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#3062BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3062BA
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3062BA#FFFFFF#000000##FFFFFF
##3062BA1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#326BBD
Deuteranopia (green-blind)
#0D5FB8
Tritanopia (blue-blind)
#007785
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #3062ba;
/* rgb */ color: rgb(48, 98, 186);
/* oklch */ color: oklch(51.0% 0.149 260.8);
Tailwind
colors: {
  custom: {
    50: '#7b8ecf',
    500: '#3062ba',
    950: '#000000',
  },
}
SCSS
$custom: #3062ba;
$custom-light: #7b8ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#3062ba",
  "rgb": {
    "r": 48,
    "g": 98,
    "b": 186
  },
  "hsl": {
    "h": 218.261,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50995,
    "c": 0.14919,
    "h": 260.8
  },
  "luminance": 0.12909
}

Semantic roles & 50–950 ramp

primary
#3062BA
secondary
#C9AD7D
accent
#A946E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #3062BA

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

Preview Lab → · Contrast checker → · Palette generator →

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