#3138A5#3138A5

#3138A5 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.0% C 0.172 H 273.1°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#3138A5
RGBrgb(49, 56, 165)
HSLhsl(236, 54%, 42%)
HSVhsv(236, 70%, 65%)
CMYKcmyk(70.3%, 66.1%, 0%, 35.3%)
CIE-LABlab(29.90, 33.93, -59.52)
CIE-LCHlch(29.90, 68.51, 299.69°)
OKLaboklab(40.95% 0.0094 -0.1719)
OKLCHoklch(40.95% 0.172 273.1)
XYZxyz(9.4701, 6.1970, 36.2871)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138A5 #A59E31
analogous
#3172A5 #3138A5 #6431A5
triadic
#3138A5 #A53138 #38A531
tetradic
#3138A5 #A53172 #A59E31 #31A564
square
#3138A5 #A53172 #A59E31 #31A564
split-complementary
#3138A5 #A56431 #72A531
monochromatic
#151847 #232876 #3138A5 #4A52C9 #797FD7

Accessibility & contrast

On white

9.38
#3138A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#3138A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138A5
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138A5#FFFFFF#000000##FFFFFF
##3138A51.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA8
Deuteranopia (green-blind)
#0041A3
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3138a5;
/* rgb */ color: rgb(49, 56, 165);
/* oklch */ color: oklch(41.0% 0.172 273.1);
Tailwind
colors: {
  custom: {
    50: '#796fc1',
    500: '#3138a5',
    950: '#000000',
  },
}
SCSS
$custom: #3138a5;
$custom-light: #796fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#3138a5",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 165
  },
  "hsl": {
    "h": 236.379,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40954,
    "c": 0.17216,
    "h": 273.1
  },
  "luminance": 0.06198
}

Semantic roles & 50–950 ramp

primary
#3138A5
secondary
#C0BB72
accent
#D54ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3138A5

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

Preview Lab → · Contrast checker → · Palette generator →

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