#3240AB#3240AB

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

Color values

HEX#3240AB
RGBrgb(50, 64, 171)
HSLhsl(233, 55%, 43%)
HSVhsv(233, 71%, 67%)
CMYKcmyk(70.8%, 62.6%, 0%, 32.9%)
CIE-LABlab(32.45, 31.07, -58.96)
CIE-LCHlch(32.45, 66.65, 297.79°)
OKLaboklab(43% 0.0043 -0.1702)
OKLCHoklch(43% 0.17 271.5)
XYZxyz(10.4970, 7.2841, 39.3730)
Luminance0.0728 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3240AB #AB9D32
analogous
#327CAB #3240AB #6032AB
triadic
#3240AB #AB3240 #40AB32
tetradic
#3240AB #AB327C #AB9D32 #32AB60
square
#3240AB #AB327C #AB9D32 #32AB60
split-complementary
#3240AB #AB6032 #7CAB32
monochromatic
#161D4C #242E7C #3240AB #4F5DCB #7E89D9

Accessibility & contrast

On white

8.55
#3240AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#3240AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3240AB#FFFFFF#000000##FFFFFF
##3240AB1.008.552.468.55
#FFFFFF8.551.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3240ab;
/* rgb */ color: rgb(50, 64, 171);
/* oklch */ color: oklch(43.0% 0.170 271.5);
Tailwind
colors: {
  custom: {
    50: '#7a74c5',
    500: '#3240ab',
    950: '#000000',
  },
}
SCSS
$custom: #3240ab;
$custom-light: #7a74c5;
$custom-dark: #000000;
JSON
{
  "hex": "#3240ab",
  "rgb": {
    "r": 50,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 233.058,
    "s": 54.751,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42995,
    "c": 0.17024,
    "h": 271.5
  },
  "luminance": 0.07285
}

Semantic roles & 50–950 ramp

primary
#3240AB
secondary
#C2B977
accent
#CD4ADE
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #3240AB

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

Preview Lab → · Contrast checker → · Palette generator →

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