#3155CA#3155CA

#3155CA is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.6% C 0.186 H 266.4°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#3155CA
RGBrgb(49, 85, 202)
HSLhsl(226, 61%, 49%)
HSVhsv(226, 76%, 79%)
CMYKcmyk(75.7%, 57.9%, 0%, 20.8%)
CIE-LABlab(40.27, 28.70, -64.43)
CIE-LCHlch(40.27, 70.53, 294.01°)
OKLaboklab(49.58% -0.0116 -0.186)
OKLCHoklch(49.58% 0.186 266.4)
XYZxyz(15.1721, 11.4125, 57.2689)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3155CA #CAA631
analogous
#31A2CA #3155CA #5931CA
triadic
#3155CA #CA3155 #55CA31
tetradic
#3155CA #CA31A2 #CAA631 #31CA59
square
#3155CA #CA31A2 #CAA631 #31CA59
split-complementary
#3155CA #CA5931 #A2CA31
monochromatic
#192C67 #254099 #3155CA #607CD8 #91A5E4

Accessibility & contrast

On white

6.40
#3155CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#3155CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3155CA
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3155CA#FFFFFF#000000##FFFFFF
##3155CA1.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#0058C8
Tritanopia (blue-blind)
#007287
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #3155ca;
/* rgb */ color: rgb(49, 85, 202);
/* oklch */ color: oklch(49.6% 0.186 266.4);
Tailwind
colors: {
  custom: {
    50: '#7f84db',
    500: '#3155ca',
    950: '#000000',
  },
}
SCSS
$custom: #3155ca;
$custom-light: #7f84db;
$custom-dark: #000000;
JSON
{
  "hex": "#3155ca",
  "rgb": {
    "r": 49,
    "g": 85,
    "b": 202
  },
  "hsl": {
    "h": 225.882,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.49578,
    "c": 0.18637,
    "h": 266.4
  },
  "luminance": 0.11414
}

Semantic roles & 50–950 ramp

primary
#3155CA
secondary
#CFBE88
accent
#BE44E4
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3155CA

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

Preview Lab → · Contrast checker → · Palette generator →

#3155CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva