#3138BF#3138BF

#3138BF is a dark, highly saturated blue. Relative luminance 0.072; OKLCH L 43.5% C 0.205 H 271.8°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#3138BF
RGBrgb(49, 56, 191)
HSLhsl(237, 59%, 47%)
HSVhsv(237, 74%, 75%)
CMYKcmyk(74.3%, 70.7%, 0%, 25.1%)
CIE-LABlab(32.35, 42.99, -70.98)
CIE-LCHlch(32.35, 82.98, 301.20°)
OKLaboklab(43.47% 0.0065 -0.2054)
OKLCHoklch(43.47% 0.206 271.8)
XYZxyz(12.0816, 7.2416, 50.0412)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138BF #BFB831
analogous
#317FBF #3138BF #7131BF
triadic
#3138BF #BF3138 #38BF31
tetradic
#3138BF #BF317F #BFB831 #31BF71
square
#3138BF #BF317F #BFB831 #31BF71
split-complementary
#3138BF #BF7131 #7FBF31
monochromatic
#181B5E #252A8E #3138BF #595FD4 #8A8EE1

Accessibility & contrast

On white

8.58
#3138BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#3138BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138BF
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138BF#FFFFFF#000000##FFFFFF
##3138BF1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C3
Deuteranopia (green-blind)
#0045BD
Tritanopia (blue-blind)
#005E77
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3138bf;
/* rgb */ color: rgb(49, 56, 191);
/* oklch */ color: oklch(43.5% 0.205 271.8);
Tailwind
colors: {
  custom: {
    50: '#7f6fd4',
    500: '#3138bf',
    950: '#000000',
  },
}
SCSS
$custom: #3138bf;
$custom-light: #7f6fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#3138bf",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 191
  },
  "hsl": {
    "h": 237.042,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.43468,
    "c": 0.2055,
    "h": 271.8
  },
  "luminance": 0.07243
}

Semantic roles & 50–950 ramp

primary
#3138BF
secondary
#CBC781
accent
#DB45E2
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3138BF

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

Preview Lab → · Contrast checker → · Palette generator →

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