#3040AE#3040AE

#3040AE is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.175 H 270.7°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#3040AE
RGBrgb(48, 64, 174)
HSLhsl(232, 57%, 44%)
HSVhsv(232, 72%, 68%)
CMYKcmyk(72.4%, 63.2%, 0%, 31.8%)
CIE-LABlab(32.59, 31.91, -60.52)
CIE-LCHlch(32.59, 68.41, 297.80°)
OKLaboklab(43.15% 0.0021 -0.1748)
OKLCHoklch(43.15% 0.175 270.7)
XYZxyz(10.6897, 7.3501, 40.8915)
Luminance0.0735 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3040AE #AE9E30
analogous
#307FAE #3040AE #5F30AE
triadic
#3040AE #AE3040 #40AE30
tetradic
#3040AE #AE307F #AE9E30 #30AE5F
square
#3040AE #AE307F #AE9E30 #30AE5F
split-complementary
#3040AE #AE5F30 #7FAE30
monochromatic
#161D4E #232E7E #3040AE #4D5ECE #7D89DB

Accessibility & contrast

On white

8.50
#3040AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#3040AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3040AE#FFFFFF#000000##FFFFFF
##3040AE1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B2
Deuteranopia (green-blind)
#0047AC
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3040ae;
/* rgb */ color: rgb(48, 64, 174);
/* oklch */ color: oklch(43.2% 0.175 270.7);
Tailwind
colors: {
  custom: {
    50: '#7a74c7',
    500: '#3040ae',
    950: '#000000',
  },
}
SCSS
$custom: #3040ae;
$custom-light: #7a74c7;
$custom-dark: #000000;
JSON
{
  "hex": "#3040ae",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 232.381,
    "s": 56.757,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43152,
    "c": 0.17481,
    "h": 270.7
  },
  "luminance": 0.07351
}

Semantic roles & 50–950 ramp

primary
#3040AE
secondary
#C4BA76
accent
#CD48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3040AE

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

Preview Lab → · Contrast checker → · Palette generator →

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