#312283#312283

#312283 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.153 H 281.6°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#312283
RGBrgb(49, 34, 131)
HSLhsl(249, 59%, 32%)
HSVhsv(249, 74%, 51%)
CMYKcmyk(62.6%, 74%, 0%, 48.6%)
CIE-LABlab(21.71, 35.82, -52.02)
CIE-LCHlch(21.71, 63.16, 304.55°)
OKLaboklab(34.07% 0.0308 -0.15)
OKLCHoklch(34.07% 0.153 281.6)
XYZxyz(5.9341, 3.4353, 21.8187)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312283 #748322
analogous
#224483 #312283 #612283
triadic
#312283 #833122 #228331
tetradic
#312283 #832244 #748322 #228361
square
#312283 #832244 #748322 #228361
split-complementary
#312283 #836122 #448322
monochromatic
#0D0922 #1F1552 #312283 #432FB4 #634ED1

Accessibility & contrast

On white

12.45
#312283 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312283
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312283#FFFFFF#000000##FFFFFF
##3122831.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312283;
/* rgb */ color: rgb(49, 34, 131);
/* oklch */ color: oklch(34.1% 0.153 281.6);
Tailwind
colors: {
  custom: {
    50: '#745fa8',
    500: '#312283',
    950: '#000000',
  },
}
SCSS
$custom: #312283;
$custom-light: #745fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#312283",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 131
  },
  "hsl": {
    "h": 249.278,
    "s": 58.788,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34065,
    "c": 0.15309,
    "h": 281.6
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#312283
secondary
#A4B44C
accent
#E246CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312283

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

Preview Lab → · Contrast checker → · Palette generator →

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