#3135B2#3135B2

#3135B2 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.7% C 0.192 H 272.9°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#3135B2
RGBrgb(49, 53, 178)
HSLhsl(238, 57%, 45%)
HSVhsv(238, 72%, 70%)
CMYKcmyk(72.5%, 70.2%, 0%, 30.2%)
CIE-LABlab(30.43, 40.34, -66.44)
CIE-LCHlch(30.43, 77.73, 301.26°)
OKLaboklab(41.71% 0.0099 -0.1922)
OKLCHoklch(41.71% 0.192 272.9)
XYZxyz(10.5729, 6.4125, 42.7914)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3135B2 #B2AE31
analogous
#3175B2 #3135B2 #6E31B2
triadic
#3135B2 #B23135 #35B231
tetradic
#3135B2 #B23175 #B2AE31 #31B26E
square
#3135B2 #B23175 #B2AE31 #31B26E
split-complementary
#3135B2 #B26E31 #75B231
monochromatic
#171852 #242782 #3135B2 #5155CF #8184DC

Accessibility & contrast

On white

9.20
#3135B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#3135B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3135B2
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3135B2#FFFFFF#000000##FFFFFF
##3135B21.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0041B0
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3135b2;
/* rgb */ color: rgb(49, 53, 178);
/* oklch */ color: oklch(41.7% 0.192 272.9);
Tailwind
colors: {
  custom: {
    50: '#7c6dca',
    500: '#3135b2',
    950: '#000000',
  },
}
SCSS
$custom: #3135b2;
$custom-light: #7c6dca;
$custom-dark: #000000;
JSON
{
  "hex": "#3135b2",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 178
  },
  "hsl": {
    "h": 238.14,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41705,
    "c": 0.19241,
    "h": 272.9
  },
  "luminance": 0.06414
}

Semantic roles & 50–950 ramp

primary
#3135B2
secondary
#C5C379
accent
#DB48E0
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3135B2

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

Preview Lab → · Contrast checker → · Palette generator →

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