#3040AA#3040AA

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

Color values

HEX#3040AA
RGBrgb(48, 64, 170)
HSLhsl(232, 56%, 43%)
HSVhsv(232, 72%, 67%)
CMYKcmyk(71.8%, 62.4%, 0%, 33.3%)
CIE-LABlab(32.25, 30.45, -58.69)
CIE-LCHlch(32.25, 66.12, 297.42°)
OKLaboklab(42.8% 0.0022 -0.1694)
OKLCHoklch(42.8% 0.169 270.8)
XYZxyz(10.3056, 7.1964, 38.8683)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3040AA #AA9A30
analogous
#307DAA #3040AA #5D30AA
triadic
#3040AA #AA3040 #40AA30
tetradic
#3040AA #AA307D #AA9A30 #30AA5D
square
#3040AA #AA307D #AA9A30 #30AA5D
split-complementary
#3040AA #AA5D30 #7DAA30
monochromatic
#151C4B #232E7A #3040AA #4B5CCC #7B87DA

Accessibility & contrast

On white

8.61
#3040AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#3040AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3040AA#FFFFFF#000000##FFFFFF
##3040AA1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AD
Deuteranopia (green-blind)
#0046A8
Tritanopia (blue-blind)
#005B6F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3040aa;
/* rgb */ color: rgb(48, 64, 170);
/* oklch */ color: oklch(42.8% 0.169 270.8);
Tailwind
colors: {
  custom: {
    50: '#7974c4',
    500: '#3040aa',
    950: '#000000',
  },
}
SCSS
$custom: #3040aa;
$custom-light: #7974c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3040aa",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 232.131,
    "s": 55.963,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42795,
    "c": 0.16944,
    "h": 270.8
  },
  "luminance": 0.07197
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3040AA

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

Preview Lab → · Contrast checker → · Palette generator →

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