#3135A4#3135A4

#3135A4 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.3% C 0.174 H 273.8°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#3135A4
RGBrgb(49, 53, 164)
HSLhsl(238, 54%, 42%)
HSVhsv(238, 70%, 64%)
CMYKcmyk(70.1%, 67.7%, 0%, 35.7%)
CIE-LABlab(29.10, 35.48, -60.23)
CIE-LCHlch(29.10, 69.90, 300.50°)
OKLaboklab(40.34% 0.0116 -0.174)
OKLCHoklch(40.34% 0.174 273.8)
XYZxyz(9.2383, 5.8786, 35.7626)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3135A4 #A4A031
analogous
#316FA4 #3135A4 #6731A4
triadic
#3135A4 #A43135 #35A431
tetradic
#3135A4 #A4316F #A4A031 #31A467
square
#3135A4 #A4316F #A4A031 #31A467
split-complementary
#3135A4 #A46731 #6FA431
monochromatic
#151746 #232675 #3135A4 #494EC9 #797CD7

Accessibility & contrast

On white

9.65
#3135A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#3135A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3135A4
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3135A4#FFFFFF#000000##FFFFFF
##3135A41.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA7
Deuteranopia (green-blind)
#003FA2
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3135a4;
/* rgb */ color: rgb(49, 53, 164);
/* oklch */ color: oklch(40.3% 0.174 273.8);
Tailwind
colors: {
  custom: {
    50: '#796dc0',
    500: '#3135a4',
    950: '#000000',
  },
}
SCSS
$custom: #3135a4;
$custom-light: #796dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#3135a4",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 164
  },
  "hsl": {
    "h": 237.913,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40344,
    "c": 0.17438,
    "h": 273.8
  },
  "luminance": 0.0588
}

Semantic roles & 50–950 ramp

primary
#3135A4
secondary
#BFBC72
accent
#D84ADD
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3135A4

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

Preview Lab → · Contrast checker → · Palette generator →

#3135A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva