#3138AB#3138AB

#3138AB is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.5% C 0.180 H 272.8°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#3138AB
RGBrgb(49, 56, 171)
HSLhsl(237, 55%, 43%)
HSVhsv(237, 71%, 67%)
CMYKcmyk(71.3%, 67.3%, 0%, 32.9%)
CIE-LABlab(30.45, 36.06, -62.23)
CIE-LCHlch(30.45, 71.92, 300.09°)
OKLaboklab(41.52% 0.0089 -0.1798)
OKLCHoklch(41.52% 0.18 272.8)
XYZxyz(10.0290, 6.4206, 39.2309)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138AB #ABA431
analogous
#3175AB #3138AB #6731AB
triadic
#3138AB #AB3138 #38AB31
tetradic
#3138AB #AB3175 #ABA431 #31AB67
square
#3138AB #AB3175 #ABA431 #31AB67
split-complementary
#3138AB #AB6731 #75AB31
monochromatic
#16194C #23287B #3138AB #4D54CC #7D82DA

Accessibility & contrast

On white

9.19
#3138AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#3138AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138AB
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138AB#FFFFFF#000000##FFFFFF
##3138AB1.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAF
Deuteranopia (green-blind)
#0042A9
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3138ab;
/* rgb */ color: rgb(49, 56, 171);
/* oklch */ color: oklch(41.5% 0.180 272.8);
Tailwind
colors: {
  custom: {
    50: '#7b6fc5',
    500: '#3138ab',
    950: '#000000',
  },
}
SCSS
$custom: #3138ab;
$custom-light: #7b6fc5;
$custom-dark: #000000;
JSON
{
  "hex": "#3138ab",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 171
  },
  "hsl": {
    "h": 236.557,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41518,
    "c": 0.18006,
    "h": 272.8
  },
  "luminance": 0.06422
}

Semantic roles & 50–950 ramp

primary
#3138AB
secondary
#C2BE75
accent
#D649DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3138AB

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

Preview Lab → · Contrast checker → · Palette generator →

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