#3040A5#3040A5

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

Color values

HEX#3040A5
RGBrgb(48, 64, 165)
HSLhsl(232, 55%, 42%)
HSVhsv(232, 71%, 65%)
CMYKcmyk(70.9%, 61.2%, 0%, 35.3%)
CIE-LABlab(31.83, 28.62, -56.37)
CIE-LCHlch(31.83, 63.22, 296.92°)
OKLaboklab(42.36% 0.0023 -0.1626)
OKLCHoklch(42.36% 0.163 270.8)
XYZxyz(9.8415, 7.0108, 36.4246)
Luminance0.0701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3040A5 #A59530
analogous
#307BA5 #3040A5 #5B30A5
triadic
#3040A5 #A53040 #40A530
tetradic
#3040A5 #A5307B #A59530 #30A55B
square
#3040A5 #A5307B #A59530 #30A55B
split-complementary
#3040A5 #A55B30 #7BA530
monochromatic
#141B46 #222E76 #3040A5 #485ACA #7885D8

Accessibility & contrast

On white

8.74
#3040A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#3040A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3040A5
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3040A5#FFFFFF#000000##FFFFFF
##3040A51.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3040a5;
/* rgb */ color: rgb(48, 64, 165);
/* oklch */ color: oklch(42.4% 0.163 270.8);
Tailwind
colors: {
  custom: {
    50: '#7874c1',
    500: '#3040a5',
    950: '#000000',
  },
}
SCSS
$custom: #3040a5;
$custom-light: #7874c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3040a5",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 165
  },
  "hsl": {
    "h": 231.795,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42355,
    "c": 0.16265,
    "h": 270.8
  },
  "luminance": 0.07012
}

Semantic roles & 50–950 ramp

primary
#3040A5
secondary
#C0B571
accent
#CA4ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3040A5

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

Preview Lab → · Contrast checker → · Palette generator →

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