#3135B8#3135B8

#3135B8 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.3% C 0.200 H 272.6°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#3135B8
RGBrgb(49, 53, 184)
HSLhsl(238, 58%, 46%)
HSVhsv(238, 73%, 72%)
CMYKcmyk(73.4%, 71.2%, 0%, 27.8%)
CIE-LABlab(31.02, 42.39, -69.04)
CIE-LCHlch(31.02, 81.02, 301.55°)
OKLaboklab(42.3% 0.0091 -0.1997)
OKLCHoklch(42.3% 0.2 272.6)
XYZxyz(11.1885, 6.6587, 46.0337)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3135B8 #B8B431
analogous
#3178B8 #3135B8 #7031B8
triadic
#3135B8 #B83135 #35B831
tetradic
#3135B8 #B83178 #B8B431 #31B870
square
#3135B8 #B83178 #B8B431 #31B870
split-complementary
#3135B8 #B87031 #78B831
monochromatic
#171957 #242788 #3135B8 #5558D2 #8588DE

Accessibility & contrast

On white

9.01
#3135B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#3135B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3135B8
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3135B8#FFFFFF#000000##FFFFFF
##3135B81.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0042B6
Tritanopia (blue-blind)
#005A73
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3135b8;
/* rgb */ color: rgb(49, 53, 184);
/* oklch */ color: oklch(42.3% 0.200 272.6);
Tailwind
colors: {
  custom: {
    50: '#7e6dcf',
    500: '#3135b8',
    950: '#000000',
  },
}
SCSS
$custom: #3135b8;
$custom-light: #7e6dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3135b8",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 184
  },
  "hsl": {
    "h": 238.222,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.42304,
    "c": 0.19996,
    "h": 272.6
  },
  "luminance": 0.0666
}

Semantic roles & 50–950 ramp

primary
#3135B8
secondary
#C8C67D
accent
#DD47E1
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #3135B8

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

Preview Lab → · Contrast checker → · Palette generator →

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