#3040B9#3040B9

#3040B9 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.2% C 0.189 H 270.5°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#3040B9
RGBrgb(48, 64, 185)
HSLhsl(233, 59%, 46%)
HSVhsv(233, 74%, 73%)
CMYKcmyk(74.1%, 65.4%, 0%, 27.5%)
CIE-LABlab(33.56, 35.87, -65.46)
CIE-LCHlch(33.56, 74.65, 298.72°)
OKLaboklab(44.16% 0.0015 -0.1893)
OKLCHoklch(44.16% 0.189 270.5)
XYZxyz(11.8063, 7.7967, 46.7722)
Luminance0.0780 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3040B9 #B9A930
analogous
#3084B9 #3040B9 #6530B9
triadic
#3040B9 #B93040 #40B930
tetradic
#3040B9 #B93084 #B9A930 #30B965
square
#3040B9 #B93084 #B9A930 #30B965
split-complementary
#3040B9 #B96530 #84B930
monochromatic
#171E58 #232F88 #3040B9 #5462D3 #848FDF

Accessibility & contrast

On white

8.20
#3040B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#3040B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3040B9
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3040B9#FFFFFF#000000##FFFFFF
##3040B91.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#0049B7
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3040b9;
/* rgb */ color: rgb(48, 64, 185);
/* oklch */ color: oklch(44.2% 0.189 270.5);
Tailwind
colors: {
  custom: {
    50: '#7d75cf',
    500: '#3040b9',
    950: '#000000',
  },
}
SCSS
$custom: #3040b9;
$custom-light: #7d75cf;
$custom-dark: #000000;
JSON
{
  "hex": "#3040b9",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 232.993,
    "s": 58.798,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44157,
    "c": 0.1893,
    "h": 270.5
  },
  "luminance": 0.07798
}

Semantic roles & 50–950 ramp

primary
#3040B9
secondary
#C9C07C
accent
#D046E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #3040B9

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

Preview Lab → · Contrast checker → · Palette generator →

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