#312482#312482

#312482 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.149 H 281.3°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#312482
RGBrgb(49, 36, 130)
HSLhsl(248, 57%, 33%)
HSVhsv(248, 72%, 51%)
CMYKcmyk(62.3%, 72.3%, 0%, 49%)
CIE-LABlab(22.04, 34.30, -50.85)
CIE-LCHlch(22.04, 61.34, 304.00°)
OKLaboklab(34.27% 0.0294 -0.1465)
OKLCHoklch(34.27% 0.149 281.3)
XYZxyz(5.9255, 3.5260, 21.4831)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312482 #758224
analogous
#244682 #312482 #602482
triadic
#312482 #823124 #248231
tetradic
#312482 #822446 #758224 #248260
square
#312482 #822446 #758224 #248260
split-complementary
#312482 #826024 #468224
monochromatic
#0D0922 #1F1752 #312482 #4331B2 #6351CF

Accessibility & contrast

On white

12.32
#312482 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#312482 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312482
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312482#FFFFFF#000000##FFFFFF
##3124821.0012.321.7112.32
#FFFFFF12.321.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #312482;
/* rgb */ color: rgb(49, 36, 130);
/* oklch */ color: oklch(34.3% 0.149 281.3);
Tailwind
colors: {
  custom: {
    50: '#7360a7',
    500: '#312482',
    950: '#000000',
  },
}
SCSS
$custom: #312482;
$custom-light: #7360a7;
$custom-dark: #000000;
JSON
{
  "hex": "#312482",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 130
  },
  "hsl": {
    "h": 248.298,
    "s": 56.627,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34269,
    "c": 0.14945,
    "h": 281.3
  },
  "luminance": 0.03526
}

Semantic roles & 50–950 ramp

primary
#312482
secondary
#A5B34F
accent
#E048CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312482

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

Preview Lab → · Contrast checker → · Palette generator →

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