#3135B6#3135B6

#3135B6 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 42.1% C 0.197 H 272.7°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#3135B6
RGBrgb(49, 53, 182)
HSLhsl(238, 58%, 45%)
HSVhsv(238, 73%, 71%)
CMYKcmyk(73.1%, 70.9%, 0%, 28.6%)
CIE-LABlab(30.82, 41.71, -68.18)
CIE-LCHlch(30.82, 79.93, 301.45°)
OKLaboklab(42.1% 0.0094 -0.1972)
OKLCHoklch(42.1% 0.197 272.7)
XYZxyz(10.9804, 6.5755, 44.9374)
Luminance0.0658 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3135B6 #B6B231
analogous
#3178B6 #3135B6 #6F31B6
triadic
#3135B6 #B63135 #35B631
tetradic
#3135B6 #B63178 #B6B231 #31B66F
square
#3135B6 #B63178 #B6B231 #31B66F
split-complementary
#3135B6 #B66F31 #78B631
monochromatic
#171956 #242786 #3135B6 #5357D1 #8486DE

Accessibility & contrast

On white

9.07
#3135B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#3135B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3135B6
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3135B6#FFFFFF#000000##FFFFFF
##3135B61.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBA
Deuteranopia (green-blind)
#0042B4
Tritanopia (blue-blind)
#005972
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3135b6;
/* rgb */ color: rgb(49, 53, 182);
/* oklch */ color: oklch(42.1% 0.197 272.7);
Tailwind
colors: {
  custom: {
    50: '#7d6dcd',
    500: '#3135b6',
    950: '#000000',
  },
}
SCSS
$custom: #3135b6;
$custom-light: #7d6dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#3135b6",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 182
  },
  "hsl": {
    "h": 238.195,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42103,
    "c": 0.19745,
    "h": 272.7
  },
  "luminance": 0.06577
}

Semantic roles & 50–950 ramp

primary
#3135B6
secondary
#C7C57C
accent
#DC47E1
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #3135B6

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

Preview Lab → · Contrast checker → · Palette generator →

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