#3138CF#3138CF

#3138CF is a mid, highly saturated blue. Relative luminance 0.080; OKLCH L 45.1% C 0.225 H 271.1°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#3138CF
RGBrgb(49, 56, 207)
HSLhsl(237, 62%, 50%)
HSVhsv(237, 76%, 81%)
CMYKcmyk(76.3%, 72.9%, 0%, 18.8%)
CIE-LABlab(33.95, 48.37, -77.69)
CIE-LCHlch(33.95, 91.52, 301.91°)
OKLaboklab(45.09% 0.0043 -0.2249)
OKLCHoklch(45.09% 0.225 271.1)
XYZxyz(13.9395, 7.9848, 59.8260)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138CF #CFC831
analogous
#3187CF #3138CF #7931CF
triadic
#3138CF #CF3138 #38CF31
tetradic
#3138CF #CF3187 #CFC831 #31CF79
square
#3138CF #CF3187 #CFC831 #31CF79
split-complementary
#3138CF #CF7931 #87CF31
monochromatic
#191D6C #252A9E #3138CF #6368DB #9498E6

Accessibility & contrast

On white

8.09
#3138CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#3138CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138CF
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138CF#FFFFFF#000000##FFFFFF
##3138CF1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D3
Deuteranopia (green-blind)
#0048CC
Tritanopia (blue-blind)
#006480
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #3138cf;
/* rgb */ color: rgb(49, 56, 207);
/* oklch */ color: oklch(45.1% 0.225 271.1);
Tailwind
colors: {
  custom: {
    50: '#8370df',
    500: '#3138cf',
    950: '#000000',
  },
}
SCSS
$custom: #3138cf;
$custom-light: #8370df;
$custom-dark: #000000;
JSON
{
  "hex": "#3138cf",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 207
  },
  "hsl": {
    "h": 237.342,
    "s": 62.205,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45092,
    "c": 0.22497,
    "h": 271.1
  },
  "luminance": 0.07986
}

Semantic roles & 50–950 ramp

primary
#3138CF
secondary
#D1CE8B
accent
#DE43E5
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #3138CF

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

Preview Lab → · Contrast checker → · Palette generator →

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