#3138B6#3138B6

#3138B6 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.6% C 0.194 H 272.3°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#3138B6
RGBrgb(49, 56, 182)
HSLhsl(237, 58%, 45%)
HSVhsv(237, 73%, 71%)
CMYKcmyk(73.1%, 69.2%, 0%, 28.6%)
CIE-LABlab(31.48, 39.90, -67.10)
CIE-LCHlch(31.48, 78.06, 300.74°)
OKLaboklab(42.58% 0.0077 -0.1941)
OKLCHoklch(42.58% 0.194 272.3)
XYZxyz(11.1214, 6.8576, 44.9844)
Luminance0.0686 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138B6 #B6AF31
analogous
#317AB6 #3138B6 #6C31B6
triadic
#3138B6 #B63138 #38B631
tetradic
#3138B6 #B6317A #B6AF31 #31B66C
square
#3138B6 #B6317A #B6AF31 #31B66C
split-complementary
#3138B6 #B66C31 #7AB631
monochromatic
#171A56 #242986 #3138B6 #535AD1 #8488DE

Accessibility & contrast

On white

8.85
#3138B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#3138B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138B6
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138B6#FFFFFF#000000##FFFFFF
##3138B61.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BA
Deuteranopia (green-blind)
#0044B4
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3138b6;
/* rgb */ color: rgb(49, 56, 182);
/* oklch */ color: oklch(42.6% 0.194 272.3);
Tailwind
colors: {
  custom: {
    50: '#7d6fcd',
    500: '#3138b6',
    950: '#000000',
  },
}
SCSS
$custom: #3138b6;
$custom-light: #7d6fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#3138b6",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 182
  },
  "hsl": {
    "h": 236.842,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42579,
    "c": 0.19421,
    "h": 272.3
  },
  "luminance": 0.06859
}

Semantic roles & 50–950 ramp

primary
#3138B6
secondary
#C7C37C
accent
#D947E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #3138B6

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

Preview Lab → · Contrast checker → · Palette generator →

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