#3138AD#3138AD

#3138AD is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.7% C 0.183 H 272.7°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#3138AD
RGBrgb(49, 56, 173)
HSLhsl(237, 56%, 44%)
HSVhsv(237, 72%, 68%)
CMYKcmyk(71.7%, 67.6%, 0%, 32.2%)
CIE-LABlab(30.63, 36.76, -63.12)
CIE-LCHlch(30.63, 73.05, 300.21°)
OKLaboklab(41.71% 0.0087 -0.1825)
OKLCHoklch(41.71% 0.183 272.7)
XYZxyz(10.2211, 6.4974, 40.2425)
Luminance0.0650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138AD #ADA631
analogous
#3176AD #3138AD #6831AD
triadic
#3138AD #AD3138 #38AD31
tetradic
#3138AD #AD3176 #ADA631 #31AD68
square
#3138AD #AD3176 #ADA631 #31AD68
split-complementary
#3138AD #AD6831 #76AD31
monochromatic
#16194E #23297D #3138AD #4E55CD #7E83DA

Accessibility & contrast

On white

9.13
#3138AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#3138AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138AD
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138AD#FFFFFF#000000##FFFFFF
##3138AD1.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB1
Deuteranopia (green-blind)
#0042AB
Tritanopia (blue-blind)
#00576E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3138ad;
/* rgb */ color: rgb(49, 56, 173);
/* oklch */ color: oklch(41.7% 0.183 272.7);
Tailwind
colors: {
  custom: {
    50: '#7b6fc6',
    500: '#3138ad',
    950: '#000000',
  },
}
SCSS
$custom: #3138ad;
$custom-light: #7b6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#3138ad",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 173
  },
  "hsl": {
    "h": 236.613,
    "s": 55.856,
    "l": 43.529
  },
  "oklch": {
    "l": 0.41709,
    "c": 0.18267,
    "h": 272.7
  },
  "luminance": 0.06498
}

Semantic roles & 50–950 ramp

primary
#3138AD
secondary
#C3BF77
accent
#D749DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3138AD

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

Preview Lab → · Contrast checker → · Palette generator →

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