#3138B2#3138B2

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

Color values

HEX#3138B2
RGBrgb(49, 56, 178)
HSLhsl(237, 57%, 45%)
HSVhsv(237, 72%, 70%)
CMYKcmyk(72.5%, 68.5%, 0%, 30.2%)
CIE-LABlab(31.10, 38.51, -65.34)
CIE-LCHlch(31.10, 75.84, 300.51°)
OKLaboklab(42.19% 0.0081 -0.1889)
OKLCHoklch(42.19% 0.189 272.5)
XYZxyz(10.7140, 6.6946, 42.8384)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138B2 #B2AB31
analogous
#3179B2 #3138B2 #6B31B2
triadic
#3138B2 #B23138 #38B231
tetradic
#3138B2 #B23179 #B2AB31 #31B26B
square
#3138B2 #B23179 #B2AB31 #31B26B
split-complementary
#3138B2 #B26B31 #79B231
monochromatic
#171A52 #242982 #3138B2 #5158CF #8186DC

Accessibility & contrast

On white

8.98
#3138B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#3138B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138B2
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138B2#FFFFFF#000000##FFFFFF
##3138B21.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3138b2;
/* rgb */ color: rgb(49, 56, 178);
/* oklch */ color: oklch(42.2% 0.189 272.5);
Tailwind
colors: {
  custom: {
    50: '#7c6fca',
    500: '#3138b2',
    950: '#000000',
  },
}
SCSS
$custom: #3138b2;
$custom-light: #7c6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#3138b2",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 178
  },
  "hsl": {
    "h": 236.744,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4219,
    "c": 0.18911,
    "h": 272.5
  },
  "luminance": 0.06696
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3138B2

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

Preview Lab → · Contrast checker → · Palette generator →

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