#3042B6#3042B6

#3042B6 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.2% C 0.183 H 270.1°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#3042B6
RGBrgb(48, 66, 182)
HSLhsl(232, 58%, 45%)
HSVhsv(232, 74%, 71%)
CMYKcmyk(73.6%, 63.7%, 0%, 28.6%)
CIE-LABlab(33.78, 33.52, -63.33)
CIE-LCHlch(33.78, 71.65, 297.89°)
OKLaboklab(44.24% 0.0004 -0.183)
OKLCHoklch(44.24% 0.183 270.1)
XYZxyz(11.6077, 7.9010, 45.1602)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3042B6 #B6A430
analogous
#3085B6 #3042B6 #6130B6
triadic
#3042B6 #B63042 #42B630
tetradic
#3042B6 #B63085 #B6A430 #30B661
square
#3042B6 #B63085 #B6A430 #30B661
split-complementary
#3042B6 #B66130 #85B630
monochromatic
#161F55 #233086 #3042B6 #5263D1 #828FDE

Accessibility & contrast

On white

8.14
#3042B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#3042B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3042B6
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3042B6#FFFFFF#000000##FFFFFF
##3042B61.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BA
Deuteranopia (green-blind)
#0049B4
Tritanopia (blue-blind)
#006076
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3042b6;
/* rgb */ color: rgb(48, 66, 182);
/* oklch */ color: oklch(44.2% 0.183 270.1);
Tailwind
colors: {
  custom: {
    50: '#7c76cd',
    500: '#3042b6',
    950: '#000000',
  },
}
SCSS
$custom: #3042b6;
$custom-light: #7c76cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3042b6",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 182
  },
  "hsl": {
    "h": 231.94,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44237,
    "c": 0.18303,
    "h": 270.1
  },
  "luminance": 0.07902
}

Semantic roles & 50–950 ramp

primary
#3042B6
secondary
#C7BD7B
accent
#CD46E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3042B6

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

Preview Lab → · Contrast checker → · Palette generator →

#3042B6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva