#3138BA#3138BA

#3138BA is a dark, vivid blue. Relative luminance 0.070; OKLCH L 43.0% C 0.199 H 272.1°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#3138BA
RGBrgb(49, 56, 186)
HSLhsl(237, 58%, 46%)
HSVhsv(237, 74%, 73%)
CMYKcmyk(73.7%, 69.9%, 0%, 27.1%)
CIE-LABlab(31.86, 41.28, -68.83)
CIE-LCHlch(31.86, 80.26, 300.95°)
OKLaboklab(42.97% 0.0072 -0.1991)
OKLCHoklch(42.97% 0.199 272.1)
XYZxyz(11.5407, 7.0253, 47.1927)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138BA #BAB331
analogous
#317CBA #3138BA #6E31BA
triadic
#3138BA #BA3138 #38BA31
tetradic
#3138BA #BA317C #BAB331 #31BA6E
square
#3138BA #BA317C #BAB331 #31BA6E
split-complementary
#3138BA #BA6E31 #7CBA31
monochromatic
#171B59 #24298A #3138BA #565CD2 #868BDF

Accessibility & contrast

On white

8.73
#3138BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#3138BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138BA
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138BA#FFFFFF#000000##FFFFFF
##3138BA1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052BE
Deuteranopia (green-blind)
#0044B8
Tritanopia (blue-blind)
#005C75
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3138ba;
/* rgb */ color: rgb(49, 56, 186);
/* oklch */ color: oklch(43.0% 0.199 272.1);
Tailwind
colors: {
  custom: {
    50: '#7e6fd0',
    500: '#3138ba',
    950: '#000000',
  },
}
SCSS
$custom: #3138ba;
$custom-light: #7e6fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#3138ba",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 236.934,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42972,
    "c": 0.19926,
    "h": 272.1
  },
  "luminance": 0.07026
}

Semantic roles & 50–950 ramp

primary
#3138BA
secondary
#C9C57E
accent
#DA46E2
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3138BA

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

Preview Lab → · Contrast checker → · Palette generator →

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