#312480#312480

#312480 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.147 H 281.7°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#312480
RGBrgb(49, 36, 128)
HSLhsl(248, 56%, 32%)
HSVhsv(248, 72%, 50%)
CMYKcmyk(61.7%, 71.9%, 0%, 49.8%)
CIE-LABlab(21.85, 33.64, -49.90)
CIE-LCHlch(21.85, 60.18, 303.98°)
OKLaboklab(34.07% 0.0297 -0.1438)
OKLCHoklch(34.07% 0.147 281.7)
XYZxyz(5.7926, 3.4728, 20.7830)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312480 #738024
analogous
#244580 #312480 #5F2480
triadic
#312480 #803124 #248031
tetradic
#312480 #802445 #738024 #24805F
square
#312480 #802445 #738024 #24805F
split-complementary
#312480 #805F24 #458024
monochromatic
#0C0920 #1F1750 #312480 #4331B0 #6250CE

Accessibility & contrast

On white

12.39
#312480 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#312480 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312480
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312480#FFFFFF#000000##FFFFFF
##3124801.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312480;
/* rgb */ color: rgb(49, 36, 128);
/* oklch */ color: oklch(34.1% 0.147 281.7);
Tailwind
colors: {
  custom: {
    50: '#7360a6',
    500: '#312480',
    950: '#000000',
  },
}
SCSS
$custom: #312480;
$custom-light: #7360a6;
$custom-dark: #000000;
JSON
{
  "hex": "#312480",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 128
  },
  "hsl": {
    "h": 248.478,
    "s": 56.098,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34073,
    "c": 0.14681,
    "h": 281.7
  },
  "luminance": 0.03473
}

Semantic roles & 50–950 ramp

primary
#312480
secondary
#A4B24E
accent
#DF48CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #312480

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

Preview Lab → · Contrast checker → · Palette generator →

#312480 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva