#3138C1#3138C1

#3138C1 is a dark, highly saturated blue. Relative luminance 0.073; OKLCH L 43.7% C 0.208 H 271.7°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#3138C1
RGBrgb(49, 56, 193)
HSLhsl(237, 60%, 47%)
HSVhsv(237, 75%, 76%)
CMYKcmyk(74.6%, 71%, 0%, 24.3%)
CIE-LABlab(32.55, 43.67, -71.83)
CIE-LCHlch(32.55, 84.06, 301.30°)
OKLaboklab(43.67% 0.0063 -0.2079)
OKLCHoklch(43.67% 0.208 271.7)
XYZxyz(12.3032, 7.3303, 51.2082)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138C1 #C1BA31
analogous
#3180C1 #3138C1 #7231C1
triadic
#3138C1 #C13138 #38C131
tetradic
#3138C1 #C13180 #C1BA31 #31C172
square
#3138C1 #C13180 #C1BA31 #31C172
split-complementary
#3138C1 #C17231 #80C131
monochromatic
#181C5F #252A90 #3138C1 #5A60D5 #8B8FE2

Accessibility & contrast

On white

8.51
#3138C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#3138C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138C1
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138C1#FFFFFF#000000##FFFFFF
##3138C11.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C5
Deuteranopia (green-blind)
#0046BF
Tritanopia (blue-blind)
#005E79
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3138c1;
/* rgb */ color: rgb(49, 56, 193);
/* oklch */ color: oklch(43.7% 0.208 271.7);
Tailwind
colors: {
  custom: {
    50: '#8070d5',
    500: '#3138c1',
    950: '#000000',
  },
}
SCSS
$custom: #3138c1;
$custom-light: #8070d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3138c1",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 193
  },
  "hsl": {
    "h": 237.083,
    "s": 59.504,
    "l": 47.451
  },
  "oklch": {
    "l": 0.43669,
    "c": 0.20797,
    "h": 271.7
  },
  "luminance": 0.07332
}

Semantic roles & 50–950 ramp

primary
#3138C1
secondary
#CCC882
accent
#DB45E3
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3138C1

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

Preview Lab → · Contrast checker → · Palette generator →

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