#3138B5#3138B5

#3138B5 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.5% C 0.193 H 272.3°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#3138B5
RGBrgb(49, 56, 181)
HSLhsl(237, 57%, 45%)
HSVhsv(237, 73%, 71%)
CMYKcmyk(72.9%, 69.1%, 0%, 29%)
CIE-LABlab(31.39, 39.55, -66.66)
CIE-LCHlch(31.39, 77.51, 300.68°)
OKLaboklab(42.48% 0.0078 -0.1928)
OKLCHoklch(42.48% 0.193 272.3)
XYZxyz(11.0185, 6.8164, 44.4421)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138B5 #B5AE31
analogous
#317AB5 #3138B5 #6C31B5
triadic
#3138B5 #B53138 #38B531
tetradic
#3138B5 #B5317A #B5AE31 #31B56C
square
#3138B5 #B5317A #B5AE31 #31B56C
split-complementary
#3138B5 #B56C31 #7AB531
monochromatic
#171A55 #242985 #3138B5 #5359D0 #8388DD

Accessibility & contrast

On white

8.88
#3138B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#3138B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138B5
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138B5#FFFFFF#000000##FFFFFF
##3138B51.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B9
Deuteranopia (green-blind)
#0044B3
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3138b5;
/* rgb */ color: rgb(49, 56, 181);
/* oklch */ color: oklch(42.5% 0.193 272.3);
Tailwind
colors: {
  custom: {
    50: '#7d6fcc',
    500: '#3138b5',
    950: '#000000',
  },
}
SCSS
$custom: #3138b5;
$custom-light: #7d6fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3138b5",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 181
  },
  "hsl": {
    "h": 236.818,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.42481,
    "c": 0.19295,
    "h": 272.3
  },
  "luminance": 0.06818
}

Semantic roles & 50–950 ramp

primary
#3138B5
secondary
#C7C37B
accent
#D847E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #3138B5

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

Preview Lab → · Contrast checker → · Palette generator →

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