#3138B1#3138B1

#3138B1 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.1% C 0.188 H 272.5°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#3138B1
RGBrgb(49, 56, 177)
HSLhsl(237, 57%, 44%)
HSVhsv(237, 72%, 69%)
CMYKcmyk(72.3%, 68.4%, 0%, 30.6%)
CIE-LABlab(31.01, 38.16, -64.90)
CIE-LCHlch(31.01, 75.29, 300.45°)
OKLaboklab(42.09% 0.0082 -0.1876)
OKLCHoklch(42.09% 0.188 272.5)
XYZxyz(10.6139, 6.6546, 42.3115)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138B1 #B1AA31
analogous
#3178B1 #3138B1 #6A31B1
triadic
#3138B1 #B13138 #38B131
tetradic
#3138B1 #B13178 #B1AA31 #31B16A
square
#3138B1 #B13178 #B1AA31 #31B16A
split-complementary
#3138B1 #B16A31 #78B131
monochromatic
#161A51 #242981 #3138B1 #5157CF #8085DC

Accessibility & contrast

On white

9.01
#3138B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#3138B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138B1
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138B1#FFFFFF#000000##FFFFFF
##3138B11.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB5
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3138b1;
/* rgb */ color: rgb(49, 56, 177);
/* oklch */ color: oklch(42.1% 0.188 272.5);
Tailwind
colors: {
  custom: {
    50: '#7c6fc9',
    500: '#3138b1',
    950: '#000000',
  },
}
SCSS
$custom: #3138b1;
$custom-light: #7c6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#3138b1",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 236.719,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42093,
    "c": 0.18783,
    "h": 272.5
  },
  "luminance": 0.06656
}

Semantic roles & 50–950 ramp

primary
#3138B1
secondary
#C5C179
accent
#D848E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3138B1

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

Preview Lab → · Contrast checker → · Palette generator →

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