#3040B3#3040B3

#3040B3 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.6% C 0.181 H 270.6°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#3040B3
RGBrgb(48, 64, 179)
HSLhsl(233, 58%, 45%)
HSVhsv(233, 73%, 70%)
CMYKcmyk(73.2%, 64.2%, 0%, 29.8%)
CIE-LABlab(33.02, 33.72, -62.78)
CIE-LCHlch(33.02, 71.26, 298.24°)
OKLaboklab(43.61% 0.0019 -0.1814)
OKLCHoklch(43.61% 0.181 270.6)
XYZxyz(11.1862, 7.5487, 43.5066)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3040B3 #B3A330
analogous
#3081B3 #3040B3 #6230B3
triadic
#3040B3 #B33040 #40B330
tetradic
#3040B3 #B33081 #B3A330 #30B362
square
#3040B3 #B33081 #B3A330 #30B362
split-complementary
#3040B3 #B36230 #81B330
monochromatic
#161D52 #232F83 #3040B3 #5060D0 #808CDD

Accessibility & contrast

On white

8.37
#3040B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#3040B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3040B3
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3040B3#FFFFFF#000000##FFFFFF
##3040B31.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#0048B1
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3040b3;
/* rgb */ color: rgb(48, 64, 179);
/* oklch */ color: oklch(43.6% 0.181 270.6);
Tailwind
colors: {
  custom: {
    50: '#7b75cb',
    500: '#3040b3',
    950: '#000000',
  },
}
SCSS
$custom: #3040b3;
$custom-light: #7b75cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3040b3",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 179
  },
  "hsl": {
    "h": 232.672,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43605,
    "c": 0.18145,
    "h": 270.6
  },
  "luminance": 0.0755
}

Semantic roles & 50–950 ramp

primary
#3040B3
secondary
#C6BD79
accent
#CE47E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3040B3

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

Preview Lab → · Contrast checker → · Palette generator →

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