#3040A6#3040A6

#3040A6 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.4% C 0.164 H 270.8°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#3040A6
RGBrgb(48, 64, 166)
HSLhsl(232, 55%, 42%)
HSVhsv(232, 71%, 65%)
CMYKcmyk(71.1%, 61.4%, 0%, 34.9%)
CIE-LABlab(31.91, 28.99, -56.84)
CIE-LCHlch(31.91, 63.80, 297.02°)
OKLaboklab(42.44% 0.0023 -0.164)
OKLCHoklch(42.44% 0.164 270.8)
XYZxyz(9.9329, 7.0474, 36.9058)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3040A6 #A69630
analogous
#307BA6 #3040A6 #5B30A6
triadic
#3040A6 #A63040 #40A630
tetradic
#3040A6 #A6307B #A69630 #30A65B
square
#3040A6 #A6307B #A69630 #30A65B
split-complementary
#3040A6 #A65B30 #7BA630
monochromatic
#151B47 #222E77 #3040A6 #495ACA #7885D8

Accessibility & contrast

On white

8.72
#3040A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3040A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3040A6
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3040A6#FFFFFF#000000##FFFFFF
##3040A61.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#005A6D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3040a6;
/* rgb */ color: rgb(48, 64, 166);
/* oklch */ color: oklch(42.4% 0.164 270.8);
Tailwind
colors: {
  custom: {
    50: '#7874c1',
    500: '#3040a6',
    950: '#000000',
  },
}
SCSS
$custom: #3040a6;
$custom-light: #7874c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3040a6",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 231.864,
    "s": 55.14,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42443,
    "c": 0.16402,
    "h": 270.8
  },
  "luminance": 0.07048
}

Semantic roles & 50–950 ramp

primary
#3040A6
secondary
#C0B671
accent
#CA49DE
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3040A6

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

Preview Lab → · Contrast checker → · Palette generator →

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