#3042BB#3042BB

#3042BB is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.7% C 0.190 H 270.1°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#3042BB
RGBrgb(48, 66, 187)
HSLhsl(232, 59%, 46%)
HSVhsv(232, 74%, 73%)
CMYKcmyk(74.3%, 64.7%, 0%, 26.7%)
CIE-LABlab(34.21, 35.32, -65.57)
CIE-LCHlch(34.21, 74.47, 298.31°)
OKLaboklab(44.69% 0.0002 -0.1896)
OKLCHoklch(44.69% 0.19 270.1)
XYZxyz(12.1337, 8.1114, 47.9303)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3042BB #BBA930
analogous
#3087BB #3042BB #6330BB
triadic
#3042BB #BB3042 #42BB30
tetradic
#3042BB #BB3087 #BBA930 #30BB63
square
#3042BB #BB3087 #BBA930 #30BB63
split-complementary
#3042BB #BB6330 #87BB30
monochromatic
#17205A #23318A #3042BB #5565D3 #8691E0

Accessibility & contrast

On white

8.01
#3042BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#3042BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3042BB
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3042BB#FFFFFF#000000##FFFFFF
##3042BB1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#004AB9
Tritanopia (blue-blind)
#006278
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3042bb;
/* rgb */ color: rgb(48, 66, 187);
/* oklch */ color: oklch(44.7% 0.190 270.1);
Tailwind
colors: {
  custom: {
    50: '#7d76d0',
    500: '#3042bb',
    950: '#000000',
  },
}
SCSS
$custom: #3042bb;
$custom-light: #7d76d0;
$custom-dark: #000000;
JSON
{
  "hex": "#3042bb",
  "rgb": {
    "r": 48,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 232.23,
    "s": 59.149,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44694,
    "c": 0.18957,
    "h": 270.1
  },
  "luminance": 0.08113
}

Semantic roles & 50–950 ramp

primary
#3042BB
secondary
#C9C07D
accent
#CE45E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3042BB

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

Preview Lab → · Contrast checker → · Palette generator →

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