#3138BD#3138BD

#3138BD is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 43.3% C 0.203 H 271.9°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#3138BD
RGBrgb(49, 56, 189)
HSLhsl(237, 59%, 47%)
HSVhsv(237, 74%, 74%)
CMYKcmyk(74.1%, 70.4%, 0%, 25.9%)
CIE-LABlab(32.16, 42.31, -70.12)
CIE-LCHlch(32.16, 81.90, 301.10°)
OKLaboklab(43.27% 0.0068 -0.2029)
OKLCHoklch(43.27% 0.203 271.9)
XYZxyz(11.8630, 7.1542, 48.8899)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138BD #BDB631
analogous
#317EBD #3138BD #7031BD
triadic
#3138BD #BD3138 #38BD31
tetradic
#3138BD #BD317E #BDB631 #31BD70
square
#3138BD #BD317E #BDB631 #31BD70
split-complementary
#3138BD #BD7031 #7EBD31
monochromatic
#181B5C #242A8C #3138BD #585ED4 #888DE0

Accessibility & contrast

On white

8.64
#3138BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3138BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138BD
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138BD#FFFFFF#000000##FFFFFF
##3138BD1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#0045BB
Tritanopia (blue-blind)
#005D76
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3138bd;
/* rgb */ color: rgb(49, 56, 189);
/* oklch */ color: oklch(43.3% 0.203 271.9);
Tailwind
colors: {
  custom: {
    50: '#7f6fd2',
    500: '#3138bd',
    950: '#000000',
  },
}
SCSS
$custom: #3138bd;
$custom-light: #7f6fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#3138bd",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 237,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.43269,
    "c": 0.20301,
    "h": 271.9
  },
  "luminance": 0.07155
}

Semantic roles & 50–950 ramp

primary
#3138BD
secondary
#CAC680
accent
#DA46E2
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3138BD

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

Preview Lab → · Contrast checker → · Palette generator →

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