#3042B5#3042B5

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

Color values

HEX#3042B5
RGBrgb(48, 66, 181)
HSLhsl(232, 58%, 45%)
HSVhsv(232, 73%, 71%)
CMYKcmyk(73.5%, 63.5%, 0%, 29%)
CIE-LABlab(33.69, 33.16, -62.88)
CIE-LCHlch(33.69, 71.09, 297.80°)
OKLaboklab(44.15% 0.0005 -0.1817)
OKLCHoklch(44.15% 0.182 270.1)
XYZxyz(11.5048, 7.8598, 44.6179)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3042B5 #B5A330
analogous
#3084B5 #3042B5 #6130B5
triadic
#3042B5 #B53042 #42B530
tetradic
#3042B5 #B53084 #B5A330 #30B561
square
#3042B5 #B53084 #B5A330 #30B561
split-complementary
#3042B5 #B56130 #84B530
monochromatic
#161F54 #233085 #3042B5 #5163D1 #828EDE

Accessibility & contrast

On white

8.16
#3042B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#3042B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3042B5
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3042B5#FFFFFF#000000##FFFFFF
##3042B51.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#0049B3
Tritanopia (blue-blind)
#006075
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3042b5;
/* rgb */ color: rgb(48, 66, 181);
/* oklch */ color: oklch(44.1% 0.182 270.1);
Tailwind
colors: {
  custom: {
    50: '#7c76cc',
    500: '#3042b5',
    950: '#000000',
  },
}
SCSS
$custom: #3042b5;
$custom-light: #7c76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3042b5",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 181
  },
  "hsl": {
    "h": 231.88,
    "s": 58.079,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44147,
    "c": 0.18171,
    "h": 270.1
  },
  "luminance": 0.07861
}

Semantic roles & 50–950 ramp

primary
#3042B5
secondary
#C7BC7A
accent
#CC46E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3042B5

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

Preview Lab → · Contrast checker → · Palette generator →

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