#312695#312695

#312695 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.172 H 278.1°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#312695
RGBrgb(49, 38, 149)
HSLhsl(246, 59%, 37%)
HSVhsv(246, 74%, 58%)
CMYKcmyk(67.1%, 74.5%, 0%, 41.6%)
CIE-LABlab(24.35, 39.42, -58.89)
CIE-LCHlch(24.35, 70.87, 303.80°)
OKLaboklab(36.49% 0.0241 -0.1701)
OKLCHoklch(36.49% 0.172 278.1)
XYZxyz(7.3828, 4.2085, 28.8512)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312695 #8A9526
analogous
#265395 #312695 #692695
triadic
#312695 #953126 #269531
tetradic
#312695 #952653 #8A9526 #269569
square
#312695 #952653 #8A9526 #269569
split-complementary
#312695 #956926 #539526
monochromatic
#110D33 #211A64 #312695 #4132C6 #6B5FD6

Accessibility & contrast

On white

11.40
#312695 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#312695 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312695
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312695#FFFFFF#000000##FFFFFF
##3126951.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #312695;
/* rgb */ color: rgb(49, 38, 149);
/* oklch */ color: oklch(36.5% 0.172 278.1);
Tailwind
colors: {
  custom: {
    50: '#7762b5',
    500: '#312695',
    950: '#000000',
  },
}
SCSS
$custom: #312695;
$custom-light: #7762b5;
$custom-dark: #000000;
JSON
{
  "hex": "#312695",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 149
  },
  "hsl": {
    "h": 245.946,
    "s": 59.358,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36488,
    "c": 0.17175,
    "h": 278.1
  },
  "luminance": 0.04209
}

Semantic roles & 50–950 ramp

primary
#312695
secondary
#B2BB5B
accent
#E345D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312695

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

Preview Lab → · Contrast checker → · Palette generator →

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