#3040AC#3040AC

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

Color values

HEX#3040AC
RGBrgb(48, 64, 172)
HSLhsl(232, 56%, 43%)
HSVhsv(232, 72%, 67%)
CMYKcmyk(72.1%, 62.8%, 0%, 32.5%)
CIE-LABlab(32.42, 31.18, -59.60)
CIE-LCHlch(32.42, 67.27, 297.61°)
OKLaboklab(42.97% 0.0022 -0.1721)
OKLCHoklch(42.97% 0.172 270.7)
XYZxyz(10.4962, 7.2727, 39.8723)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3040AC #AC9C30
analogous
#307EAC #3040AC #5E30AC
triadic
#3040AC #AC3040 #40AC30
tetradic
#3040AC #AC307E #AC9C30 #30AC5E
square
#3040AC #AC307E #AC9C30 #30AC5E
split-complementary
#3040AC #AC5E30 #7EAC30
monochromatic
#151C4C #232E7C #3040AC #4C5DCD #7C88DA

Accessibility & contrast

On white

8.55
#3040AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3040AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3040AC
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3040AC#FFFFFF#000000##FFFFFF
##3040AC1.008.552.458.55
#FFFFFF8.551.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3040ac;
/* rgb */ color: rgb(48, 64, 172);
/* oklch */ color: oklch(43.0% 0.172 270.7);
Tailwind
colors: {
  custom: {
    50: '#7a74c6',
    500: '#3040ac',
    950: '#000000',
  },
}
SCSS
$custom: #3040ac;
$custom-light: #7a74c6;
$custom-dark: #000000;
JSON
{
  "hex": "#3040ac",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 232.258,
    "s": 56.364,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42973,
    "c": 0.17213,
    "h": 270.7
  },
  "luminance": 0.07274
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3040AC

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

Preview Lab → · Contrast checker → · Palette generator →

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