#3135A8#3135A8

#3135A8 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.7% C 0.180 H 273.6°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#3135A8
RGBrgb(49, 53, 168)
HSLhsl(238, 55%, 43%)
HSVhsv(238, 71%, 66%)
CMYKcmyk(70.8%, 68.5%, 0%, 34.1%)
CIE-LABlab(29.48, 36.88, -62.03)
CIE-LCHlch(29.48, 72.16, 300.73°)
OKLaboklab(40.73% 0.0112 -0.1792)
OKLCHoklch(40.73% 0.18 273.6)
XYZxyz(9.6052, 6.0254, 37.6950)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3135A8 #A8A431
analogous
#3171A8 #3135A8 #6831A8
triadic
#3135A8 #A83135 #35A831
tetradic
#3135A8 #A83171 #A8A431 #31A868
square
#3135A8 #A83171 #A8A431 #31A868
split-complementary
#3135A8 #A86831 #71A831
monochromatic
#151749 #232679 #3135A8 #4C50CB #7B7ED8

Accessibility & contrast

On white

9.52
#3135A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#3135A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3135A8
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3135A8#FFFFFF#000000##FFFFFF
##3135A81.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0040A6
Tritanopia (blue-blind)
#00546A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3135a8;
/* rgb */ color: rgb(49, 53, 168);
/* oklch */ color: oklch(40.7% 0.180 273.6);
Tailwind
colors: {
  custom: {
    50: '#7a6dc3',
    500: '#3135a8',
    950: '#000000',
  },
}
SCSS
$custom: #3135a8;
$custom-light: #7a6dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#3135a8",
  "rgb": {
    "r": 49,
    "g": 53,
    "b": 168
  },
  "hsl": {
    "h": 237.983,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40727,
    "c": 0.1796,
    "h": 273.6
  },
  "luminance": 0.06026
}

Semantic roles & 50–950 ramp

primary
#3135A8
secondary
#C1BE74
accent
#D94ADE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3135A8

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

Preview Lab → · Contrast checker → · Palette generator →

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