#3040A9#3040A9

#3040A9 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.168 H 270.8°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#3040A9
RGBrgb(48, 64, 169)
HSLhsl(232, 56%, 43%)
HSVhsv(232, 72%, 66%)
CMYKcmyk(71.6%, 62.1%, 0%, 33.7%)
CIE-LABlab(32.17, 30.08, -58.23)
CIE-LCHlch(32.17, 65.54, 297.32°)
OKLaboklab(42.71% 0.0023 -0.1681)
OKLCHoklch(42.71% 0.168 270.8)
XYZxyz(10.2113, 7.1587, 38.3720)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3040A9 #A99930
analogous
#307DA9 #3040A9 #5C30A9
triadic
#3040A9 #A93040 #40A930
tetradic
#3040A9 #A9307D #A99930 #30A95C
square
#3040A9 #A9307D #A99930 #30A95C
split-complementary
#3040A9 #A95C30 #7DA930
monochromatic
#151C4A #222E79 #3040A9 #4A5CCC #7A87D9

Accessibility & contrast

On white

8.63
#3040A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3040A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3040A9
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3040A9#FFFFFF#000000##FFFFFF
##3040A91.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3040a9;
/* rgb */ color: rgb(48, 64, 169);
/* oklch */ color: oklch(42.7% 0.168 270.8);
Tailwind
colors: {
  custom: {
    50: '#7974c3',
    500: '#3040a9',
    950: '#000000',
  },
}
SCSS
$custom: #3040a9;
$custom-light: #7974c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3040a9",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 169
  },
  "hsl": {
    "h": 232.066,
    "s": 55.76,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42706,
    "c": 0.1681,
    "h": 270.8
  },
  "luminance": 0.0716
}

Semantic roles & 50–950 ramp

primary
#3040A9
secondary
#C2B773
accent
#CB49DF
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #3040A9

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

Preview Lab → · Contrast checker → · Palette generator →

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