#3138B7#3138B7

#3138B7 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.7% C 0.195 H 272.2°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#3138B7
RGBrgb(49, 56, 183)
HSLhsl(237, 58%, 45%)
HSVhsv(237, 73%, 72%)
CMYKcmyk(73.2%, 69.4%, 0%, 28.2%)
CIE-LABlab(31.58, 40.24, -67.53)
CIE-LCHlch(31.58, 78.61, 300.79°)
OKLaboklab(42.68% 0.0075 -0.1953)
OKLCHoklch(42.68% 0.195 272.2)
XYZxyz(11.2252, 6.8991, 45.5306)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138B7 #B7B031
analogous
#317BB7 #3138B7 #6D31B7
triadic
#3138B7 #B73138 #38B731
tetradic
#3138B7 #B7317B #B7B031 #31B76D
square
#3138B7 #B7317B #B7B031 #31B76D
split-complementary
#3138B7 #B76D31 #7BB731
monochromatic
#171A56 #242987 #3138B7 #545BD1 #8489DE

Accessibility & contrast

On white

8.82
#3138B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#3138B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138B7
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138B7#FFFFFF#000000##FFFFFF
##3138B71.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BB
Deuteranopia (green-blind)
#0044B5
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3138b7;
/* rgb */ color: rgb(49, 56, 183);
/* oklch */ color: oklch(42.7% 0.195 272.2);
Tailwind
colors: {
  custom: {
    50: '#7d6fce',
    500: '#3138b7',
    950: '#000000',
  },
}
SCSS
$custom: #3138b7;
$custom-light: #7d6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#3138b7",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 236.866,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42677,
    "c": 0.19548,
    "h": 272.2
  },
  "luminance": 0.069
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3138B7

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

Preview Lab → · Contrast checker → · Palette generator →

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