#3138A4#3138A4

#3138A4 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.9% C 0.171 H 273.2°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#3138A4
RGBrgb(49, 56, 164)
HSLhsl(236, 54%, 42%)
HSVhsv(236, 70%, 64%)
CMYKcmyk(70.1%, 65.9%, 0%, 35.7%)
CIE-LABlab(29.81, 33.58, -59.06)
CIE-LCHlch(29.81, 67.94, 299.62°)
OKLaboklab(40.86% 0.0095 -0.1706)
OKLCHoklch(40.86% 0.171 273.2)
XYZxyz(9.3794, 6.1608, 35.8096)
Luminance0.0616 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138A4 #A49D31
analogous
#3172A4 #3138A4 #6431A4
triadic
#3138A4 #A43138 #38A431
tetradic
#3138A4 #A43172 #A49D31 #31A464
square
#3138A4 #A43172 #A49D31 #31A464
split-complementary
#3138A4 #A46431 #72A431
monochromatic
#151846 #232875 #3138A4 #4951C9 #797ED7

Accessibility & contrast

On white

9.41
#3138A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#3138A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138A4
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138A4#FFFFFF#000000##FFFFFF
##3138A41.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA7
Deuteranopia (green-blind)
#0041A2
Tritanopia (blue-blind)
#005469
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3138a4;
/* rgb */ color: rgb(49, 56, 164);
/* oklch */ color: oklch(40.9% 0.171 273.2);
Tailwind
colors: {
  custom: {
    50: '#796fc0',
    500: '#3138a4',
    950: '#000000',
  },
}
SCSS
$custom: #3138a4;
$custom-light: #796fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#3138a4",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 164
  },
  "hsl": {
    "h": 236.348,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40861,
    "c": 0.17083,
    "h": 273.2
  },
  "luminance": 0.06162
}

Semantic roles & 50–950 ramp

primary
#3138A4
secondary
#BFBA72
accent
#D44ADD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #3138A4

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

Preview Lab → · Contrast checker → · Palette generator →

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