#3151CA#3151CA

#3151CA is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.8% C 0.191 H 267.3°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#3151CA
RGBrgb(49, 81, 202)
HSLhsl(227, 61%, 49%)
HSVhsv(227, 76%, 79%)
CMYKcmyk(75.7%, 59.9%, 0%, 20.8%)
CIE-LABlab(39.24, 31.28, -66.10)
CIE-LCHlch(39.24, 73.13, 295.33°)
OKLaboklab(48.81% -0.0089 -0.191)
OKLCHoklch(48.81% 0.191 267.3)
XYZxyz(14.8660, 10.8004, 57.1669)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3151CA #CAAA31
analogous
#319ECA #3151CA #5E31CA
triadic
#3151CA #CA3151 #51CA31
tetradic
#3151CA #CA319E #CAAA31 #31CA5E
square
#3151CA #CA319E #CAAA31 #31CA5E
split-complementary
#3151CA #CA5E31 #9ECA31
monochromatic
#192A67 #253D99 #3151CA #6079D8 #91A2E4

Accessibility & contrast

On white

6.64
#3151CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#3151CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3151CA
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3151CA#FFFFFF#000000##FFFFFF
##3151CA1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CE
Deuteranopia (green-blind)
#0055C8
Tritanopia (blue-blind)
#007086
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #3151ca;
/* rgb */ color: rgb(49, 81, 202);
/* oklch */ color: oklch(48.8% 0.191 267.3);
Tailwind
colors: {
  custom: {
    50: '#8081db',
    500: '#3151ca',
    950: '#000000',
  },
}
SCSS
$custom: #3151ca;
$custom-light: #8081db;
$custom-dark: #000000;
JSON
{
  "hex": "#3151ca",
  "rgb": {
    "r": 49,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 227.451,
    "s": 60.956,
    "l": 49.216
  },
  "oklch": {
    "l": 0.48813,
    "c": 0.19118,
    "h": 267.3
  },
  "luminance": 0.10802
}

Semantic roles & 50–950 ramp

primary
#3151CA
secondary
#CFC088
accent
#C344E4
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #3151CA

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

Preview Lab → · Contrast checker → · Palette generator →

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