#3040B6#3040B6

#3040B6 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.9% C 0.185 H 270.5°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#3040B6
RGBrgb(48, 64, 182)
HSLhsl(233, 58%, 45%)
HSVhsv(233, 74%, 71%)
CMYKcmyk(73.6%, 64.8%, 0%, 28.6%)
CIE-LABlab(33.29, 34.80, -64.13)
CIE-LCHlch(33.29, 72.96, 298.48°)
OKLaboklab(43.88% 0.0017 -0.1854)
OKLCHoklch(43.88% 0.185 270.5)
XYZxyz(11.4929, 7.6714, 45.1219)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3040B6 #B6A630
analogous
#3083B6 #3040B6 #6330B6
triadic
#3040B6 #B63040 #40B630
tetradic
#3040B6 #B63083 #B6A630 #30B663
square
#3040B6 #B63083 #B6A630 #30B663
split-complementary
#3040B6 #B66330 #83B630
monochromatic
#161E55 #232F86 #3040B6 #5261D1 #828DDE

Accessibility & contrast

On white

8.29
#3040B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#3040B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3040B6
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3040B6#FFFFFF#000000##FFFFFF
##3040B61.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BA
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#005F75
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3040b6;
/* rgb */ color: rgb(48, 64, 182);
/* oklch */ color: oklch(43.9% 0.185 270.5);
Tailwind
colors: {
  custom: {
    50: '#7c75cd',
    500: '#3040b6',
    950: '#000000',
  },
}
SCSS
$custom: #3040b6;
$custom-light: #7c75cd;
$custom-dark: #000000;
JSON
{
  "hex": "#3040b6",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 182
  },
  "hsl": {
    "h": 232.836,
    "s": 58.261,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4388,
    "c": 0.18539,
    "h": 270.5
  },
  "luminance": 0.07673
}

Semantic roles & 50–950 ramp

primary
#3040B6
secondary
#C7BE7B
accent
#CF46E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3040B6

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

Preview Lab → · Contrast checker → · Palette generator →

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