#3040A3#3040A3

#3040A3 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.160 H 270.8°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#3040A3
RGBrgb(48, 64, 163)
HSLhsl(232, 55%, 41%)
HSVhsv(232, 71%, 64%)
CMYKcmyk(70.6%, 60.7%, 0%, 36.1%)
CIE-LABlab(31.67, 27.88, -55.43)
CIE-LCHlch(31.67, 62.05, 296.70°)
OKLaboklab(42.18% 0.0024 -0.1599)
OKLCHoklch(42.18% 0.16 270.8)
XYZxyz(9.6609, 6.9386, 35.4734)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3040A3 #A39330
analogous
#307AA3 #3040A3 #5A30A3
triadic
#3040A3 #A33040 #40A330
tetradic
#3040A3 #A3307A #A39330 #30A35A
square
#3040A3 #A3307A #A39330 #30A35A
split-complementary
#3040A3 #A35A30 #7AA330
monochromatic
#141B44 #222D74 #3040A3 #4759C9 #7784D7

Accessibility & contrast

On white

8.79
#3040A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#3040A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3040A3
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3040A3#FFFFFF#000000##FFFFFF
##3040A31.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#0045A1
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3040a3;
/* rgb */ color: rgb(48, 64, 163);
/* oklch */ color: oklch(42.2% 0.160 270.8);
Tailwind
colors: {
  custom: {
    50: '#7874bf',
    500: '#3040a3',
    950: '#000000',
  },
}
SCSS
$custom: #3040a3;
$custom-light: #7874bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3040a3",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 231.652,
    "s": 54.502,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42182,
    "c": 0.1599,
    "h": 270.8
  },
  "luminance": 0.0694
}

Semantic roles & 50–950 ramp

primary
#3040A3
secondary
#BFB470
accent
#C94ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3040A3

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

Preview Lab → · Contrast checker → · Palette generator →

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