#3040AD#3040AD

#3040AD is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.173 H 270.7°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#3040AD
RGBrgb(48, 64, 173)
HSLhsl(232, 57%, 43%)
HSVhsv(232, 72%, 68%)
CMYKcmyk(72.3%, 63%, 0%, 32.2%)
CIE-LABlab(32.51, 31.54, -60.06)
CIE-LCHlch(32.51, 67.84, 297.71°)
OKLaboklab(43.06% 0.0021 -0.1735)
OKLCHoklch(43.06% 0.173 270.7)
XYZxyz(10.5926, 7.3112, 40.3800)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3040AD #AD9D30
analogous
#307EAD #3040AD #5E30AD
triadic
#3040AD #AD3040 #40AD30
tetradic
#3040AD #AD307E #AD9D30 #30AD5E
square
#3040AD #AD307E #AD9D30 #30AD5E
split-complementary
#3040AD #AD5E30 #7EAD30
monochromatic
#151D4D #232E7D #3040AD #4D5DCE #7D89DB

Accessibility & contrast

On white

8.53
#3040AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#3040AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3040AD
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3040AD#FFFFFF#000000##FFFFFF
##3040AD1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#0047AB
Tritanopia (blue-blind)
#005C70
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3040ad;
/* rgb */ color: rgb(48, 64, 173);
/* oklch */ color: oklch(43.1% 0.173 270.7);
Tailwind
colors: {
  custom: {
    50: '#7a74c6',
    500: '#3040ad',
    950: '#000000',
  },
}
SCSS
$custom: #3040ad;
$custom-light: #7a74c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3040ad",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 173
  },
  "hsl": {
    "h": 232.32,
    "s": 56.561,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43062,
    "c": 0.17347,
    "h": 270.7
  },
  "luminance": 0.07312
}

Semantic roles & 50–950 ramp

primary
#3040AD
secondary
#C3B975
accent
#CC48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3040AD

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

Preview Lab → · Contrast checker → · Palette generator →

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