#3138E2#3138E2

#3138E2 is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 47.1% C 0.247 H 270.3°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#3138E2
RGBrgb(49, 56, 226)
HSLhsl(238, 75%, 54%)
HSVhsv(238, 78%, 89%)
CMYKcmyk(78.3%, 75.2%, 0%, 11.4%)
CIE-LABlab(35.93, 54.55, -85.36)
CIE-LCHlch(35.93, 101.30, 302.58°)
OKLaboklab(47.08% 0.0012 -0.2472)
OKLCHoklch(47.08% 0.247 270.3)
XYZxyz(16.4036, 8.9704, 72.8037)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138E2 #E2DB31
analogous
#3191E2 #3138E2 #8331E2
triadic
#3138E2 #E23138 #38E231
tetradic
#3138E2 #E23191 #E2DB31 #31E283
square
#3138E2 #E23191 #E2DB31 #31E283
split-complementary
#3138E2 #E28331 #91E231
monochromatic
#131786 #1A21BB #3138E2 #676CEA #9CA0F1

Accessibility & contrast

On white

7.52
#3138E2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#3138E2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138E2
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138E2#FFFFFF#000000##FFFFFF
##3138E21.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DE7
Deuteranopia (green-blind)
#004BDF
Tritanopia (blue-blind)
#006B8B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #3138e2;
/* rgb */ color: rgb(49, 56, 226);
/* oklch */ color: oklch(47.1% 0.247 270.3);
Tailwind
colors: {
  custom: {
    50: '#8771ed',
    500: '#3138e2',
    950: '#000000',
  },
}
SCSS
$custom: #3138e2;
$custom-light: #8771ed;
$custom-dark: #000000;
JSON
{
  "hex": "#3138e2",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 226
  },
  "hsl": {
    "h": 237.627,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.47079,
    "c": 0.24722,
    "h": 270.3
  },
  "luminance": 0.08972
}

Semantic roles & 50–950 ramp

primary
#3138E2
secondary
#DDDA92
accent
#EA36F2
background
#F9F6FE
surface
#F2ECFD
border
#CCC7D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #3138E2

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

Preview Lab → · Contrast checker → · Palette generator →

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