#3138C4#3138C4

#3138C4 is a dark, highly saturated blue. Relative luminance 0.075; OKLCH L 44.0% C 0.212 H 271.6°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#3138C4
RGBrgb(49, 56, 196)
HSLhsl(237, 60%, 48%)
HSVhsv(237, 75%, 77%)
CMYKcmyk(75%, 71.4%, 0%, 23.1%)
CIE-LABlab(32.84, 44.69, -73.10)
CIE-LCHlch(32.84, 85.68, 301.44°)
OKLaboklab(43.97% 0.0059 -0.2116)
OKLCHoklch(43.97% 0.212 271.6)
XYZxyz(12.6412, 7.4655, 52.9886)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138C4 #C4BD31
analogous
#3181C4 #3138C4 #7331C4
triadic
#3138C4 #C43138 #38C431
tetradic
#3138C4 #C43181 #C4BD31 #31C473
square
#3138C4 #C43181 #C4BD31 #31C473
split-complementary
#3138C4 #C47331 #81C431
monochromatic
#191C62 #252A93 #3138C4 #5C62D6 #8D91E2

Accessibility & contrast

On white

8.42
#3138C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#3138C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138C4
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138C4#FFFFFF#000000##FFFFFF
##3138C41.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C8
Deuteranopia (green-blind)
#0046C1
Tritanopia (blue-blind)
#00607A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3138c4;
/* rgb */ color: rgb(49, 56, 196);
/* oklch */ color: oklch(44.0% 0.212 271.6);
Tailwind
colors: {
  custom: {
    50: '#8070d7',
    500: '#3138c4',
    950: '#000000',
  },
}
SCSS
$custom: #3138c4;
$custom-light: #8070d7;
$custom-dark: #000000;
JSON
{
  "hex": "#3138c4",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 196
  },
  "hsl": {
    "h": 237.143,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4397,
    "c": 0.21166,
    "h": 271.6
  },
  "luminance": 0.07467
}

Semantic roles & 50–950 ramp

primary
#3138C4
secondary
#CDC984
accent
#DC45E3
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #3138C4

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

Preview Lab → · Contrast checker → · Palette generator →

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