#3138B3#3138B3

#3138B3 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.3% C 0.190 H 272.4°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#3138B3
RGBrgb(49, 56, 179)
HSLhsl(237, 57%, 45%)
HSVhsv(237, 73%, 70%)
CMYKcmyk(72.6%, 68.7%, 0%, 29.8%)
CIE-LABlab(31.20, 38.86, -65.78)
CIE-LCHlch(31.20, 76.40, 300.57°)
OKLaboklab(42.29% 0.008 -0.1902)
OKLCHoklch(42.29% 0.19 272.4)
XYZxyz(10.8147, 6.7349, 43.3691)
Luminance0.0674 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138B3 #B3AC31
analogous
#3179B3 #3138B3 #6B31B3
triadic
#3138B3 #B33138 #38B331
tetradic
#3138B3 #B33179 #B3AC31 #31B36B
square
#3138B3 #B33179 #B3AC31 #31B36B
split-complementary
#3138B3 #B36B31 #79B331
monochromatic
#171A53 #242983 #3138B3 #5258D0 #8287DD

Accessibility & contrast

On white

8.95
#3138B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#3138B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138B3
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138B3#FFFFFF#000000##FFFFFF
##3138B31.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B7
Deuteranopia (green-blind)
#0043B1
Tritanopia (blue-blind)
#005971
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #3138b3;
/* rgb */ color: rgb(49, 56, 179);
/* oklch */ color: oklch(42.3% 0.190 272.4);
Tailwind
colors: {
  custom: {
    50: '#7c6fcb',
    500: '#3138b3',
    950: '#000000',
  },
}
SCSS
$custom: #3138b3;
$custom-light: #7c6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#3138b3",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 179
  },
  "hsl": {
    "h": 236.769,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42287,
    "c": 0.1904,
    "h": 272.4
  },
  "luminance": 0.06736
}

Semantic roles & 50–950 ramp

primary
#3138B3
secondary
#C6C27A
accent
#D848E0
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3138B3

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

Preview Lab → · Contrast checker → · Palette generator →

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