#3135A2#3135A2

#3135A2 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.2% C 0.172 H 273.9°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#3135A2
RGBrgb(49, 53, 162)
HSLhsl(238, 54%, 41%)
HSVhsv(238, 70%, 64%)
CMYKcmyk(69.8%, 67.3%, 0%, 36.5%)
CIE-LABlab(28.92, 34.77, -59.32)
CIE-LCHlch(28.92, 68.76, 300.38°)
OKLaboklab(40.15% 0.0118 -0.1713)
OKLCHoklch(40.15% 0.172 273.9)
XYZxyz(9.0591, 5.8070, 34.8189)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3135A2 #A29E31
analogous
#316EA2 #3135A2 #6631A2
triadic
#3135A2 #A23135 #35A231
tetradic
#3135A2 #A2316E #A29E31 #31A266
square
#3135A2 #A2316E #A29E31 #31A266
split-complementary
#3135A2 #A26631 #6EA231
monochromatic
#151644 #232673 #3135A2 #484DC8 #777BD6

Accessibility & contrast

On white

9.72
#3135A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#3135A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3135A2
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3135A2#FFFFFF#000000##FFFFFF
##3135A21.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#003FA0
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3135a2;
/* rgb */ color: rgb(49, 53, 162);
/* oklch */ color: oklch(40.2% 0.172 273.9);
Tailwind
colors: {
  custom: {
    50: '#796dbf',
    500: '#3135a2',
    950: '#000000',
  },
}
SCSS
$custom: #3135a2;
$custom-light: #796dbf;
$custom-dark: #000000;
JSON
{
  "hex": "#3135a2",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 237.876,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40154,
    "c": 0.17174,
    "h": 273.9
  },
  "luminance": 0.05808
}

Semantic roles & 50–950 ramp

primary
#3135A2
secondary
#BEBB71
accent
#D84BDD
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3135A2

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

Preview Lab → · Contrast checker → · Palette generator →

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