#3240AA#3240AA

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

Color values

HEX#3240AA
RGBrgb(50, 64, 170)
HSLhsl(233, 55%, 43%)
HSVhsv(233, 71%, 67%)
CMYKcmyk(70.6%, 62.4%, 0%, 33.3%)
CIE-LABlab(32.36, 30.71, -58.50)
CIE-LCHlch(32.36, 66.07, 297.70°)
OKLaboklab(42.91% 0.0043 -0.1688)
OKLCHoklch(42.91% 0.169 271.5)
XYZxyz(10.4020, 7.2462, 38.8729)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240AA #AA9C32
analogous
#327CAA #3240AA #6032AA
triadic
#3240AA #AA3240 #40AA32
tetradic
#3240AA #AA327C #AA9C32 #32AA60
square
#3240AA #AA327C #AA9C32 #32AA60
split-complementary
#3240AA #AA6032 #7CAA32
monochromatic
#161C4B #242E7B #3240AA #4E5DCB #7D88D9

Accessibility & contrast

On white

8.57
#3240AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3240AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3240AA
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3240AA#FFFFFF#000000##FFFFFF
##3240AA1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3240aa;
/* rgb */ color: rgb(50, 64, 170);
/* oklch */ color: oklch(42.9% 0.169 271.5);
Tailwind
colors: {
  custom: {
    50: '#7a74c4',
    500: '#3240aa',
    950: '#000000',
  },
}
SCSS
$custom: #3240aa;
$custom-light: #7a74c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3240aa",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 233,
    "s": 54.545,
    "l": 43.137
  },
  "oklch": {
    "l": 0.42907,
    "c": 0.1689,
    "h": 271.5
  },
  "luminance": 0.07247
}

Semantic roles & 50–950 ramp

primary
#3240AA
secondary
#C2B976
accent
#CD4ADE
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #3240AA

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

Preview Lab → · Contrast checker → · Palette generator →

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