#3138A1#3138A1

#3138A1 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.6% C 0.167 H 273.3°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#3138A1
RGBrgb(49, 56, 161)
HSLhsl(236, 53%, 41%)
HSVhsv(236, 70%, 63%)
CMYKcmyk(69.6%, 65.2%, 0%, 36.9%)
CIE-LABlab(29.55, 32.51, -57.69)
CIE-LCHlch(29.55, 66.22, 299.40°)
OKLaboklab(40.58% 0.0097 -0.1665)
OKLCHoklch(40.58% 0.167 273.3)
XYZxyz(9.1117, 6.0537, 34.3996)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138A1 #A19A31
analogous
#3170A1 #3138A1 #6231A1
triadic
#3138A1 #A13138 #38A131
tetradic
#3138A1 #A13170 #A19A31 #31A162
square
#3138A1 #A13170 #A19A31 #31A162
split-complementary
#3138A1 #A16231 #70A131
monochromatic
#141743 #232872 #3138A1 #4850C7 #777DD6

Accessibility & contrast

On white

9.50
#3138A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#3138A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138A1
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138A1#FFFFFF#000000##FFFFFF
##3138A11.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA4
Deuteranopia (green-blind)
#00419F
Tritanopia (blue-blind)
#005367
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3138a1;
/* rgb */ color: rgb(49, 56, 161);
/* oklch */ color: oklch(40.6% 0.167 273.3);
Tailwind
colors: {
  custom: {
    50: '#786fbe',
    500: '#3138a1',
    950: '#000000',
  },
}
SCSS
$custom: #3138a1;
$custom-light: #786fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3138a1",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 161
  },
  "hsl": {
    "h": 236.25,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40584,
    "c": 0.16681,
    "h": 273.3
  },
  "luminance": 0.06055
}

Semantic roles & 50–950 ramp

primary
#3138A1
secondary
#BEB970
accent
#D44BDD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3138A1

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

Preview Lab → · Contrast checker → · Palette generator →

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