#3138C5#3138C5

#3138C5 is a dark, highly saturated blue. Relative luminance 0.075; OKLCH L 44.1% C 0.213 H 271.5°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#3138C5
RGBrgb(49, 56, 197)
HSLhsl(237, 60%, 48%)
HSVhsv(237, 75%, 77%)
CMYKcmyk(75.1%, 71.6%, 0%, 22.7%)
CIE-LABlab(32.94, 45.03, -73.52)
CIE-LCHlch(32.94, 86.21, 301.48°)
OKLaboklab(44.07% 0.0057 -0.2128)
OKLCHoklch(44.07% 0.213 271.5)
XYZxyz(12.7554, 7.5112, 53.5901)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138C5 #C5BE31
analogous
#3182C5 #3138C5 #7431C5
triadic
#3138C5 #C53138 #38C531
tetradic
#3138C5 #C53182 #C5BE31 #31C574
square
#3138C5 #C53182 #C5BE31 #31C574
split-complementary
#3138C5 #C57431 #82C531
monochromatic
#191C63 #252A94 #3138C5 #5D62D7 #8E92E3

Accessibility & contrast

On white

8.39
#3138C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#3138C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138C5
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138C5#FFFFFF#000000##FFFFFF
##3138C51.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C9
Deuteranopia (green-blind)
#0046C2
Tritanopia (blue-blind)
#00607B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3138c5;
/* rgb */ color: rgb(49, 56, 197);
/* oklch */ color: oklch(44.1% 0.213 271.5);
Tailwind
colors: {
  custom: {
    50: '#8170d8',
    500: '#3138c5',
    950: '#000000',
  },
}
SCSS
$custom: #3138c5;
$custom-light: #8170d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3138c5",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 237.162,
    "s": 60.163,
    "l": 48.235
  },
  "oklch": {
    "l": 0.44071,
    "c": 0.21289,
    "h": 271.5
  },
  "luminance": 0.07513
}

Semantic roles & 50–950 ramp

primary
#3138C5
secondary
#CDCA85
accent
#DC44E3
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #3138C5

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

Preview Lab → · Contrast checker → · Palette generator →

#3138C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva