#3135B7#3135B7

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

Color values

HEX#3135B7
RGBrgb(49, 53, 183)
HSLhsl(238, 58%, 45%)
HSVhsv(238, 73%, 72%)
CMYKcmyk(73.2%, 71%, 0%, 28.2%)
CIE-LABlab(30.92, 42.05, -68.61)
CIE-LCHlch(30.92, 80.47, 301.50°)
OKLaboklab(42.2% 0.0092 -0.1985)
OKLCHoklch(42.2% 0.199 272.7)
XYZxyz(11.0841, 6.6169, 45.4836)
Luminance0.0662 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3135B7 #B7B331
analogous
#3178B7 #3135B7 #7031B7
triadic
#3135B7 #B73135 #35B731
tetradic
#3135B7 #B73178 #B7B331 #31B770
square
#3135B7 #B73178 #B7B331 #31B770
split-complementary
#3135B7 #B77031 #78B731
monochromatic
#171956 #242787 #3135B7 #5458D1 #8487DE

Accessibility & contrast

On white

9.04
#3135B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3135B7
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3135B7#FFFFFF#000000##FFFFFF
##3135B71.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3135b7;
/* rgb */ color: rgb(49, 53, 183);
/* oklch */ color: oklch(42.2% 0.199 272.7);
Tailwind
colors: {
  custom: {
    50: '#7e6dce',
    500: '#3135b7',
    950: '#000000',
  },
}
SCSS
$custom: #3135b7;
$custom-light: #7e6dce;
$custom-dark: #000000;
JSON
{
  "hex": "#3135b7",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 183
  },
  "hsl": {
    "h": 238.209,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42203,
    "c": 0.1987,
    "h": 272.7
  },
  "luminance": 0.06618
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3135B7

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

Preview Lab → · Contrast checker → · Palette generator →

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