#3138A3#3138A3

#3138A3 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.8% C 0.169 H 273.2°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#3138A3
RGBrgb(49, 56, 163)
HSLhsl(236, 54%, 42%)
HSVhsv(236, 70%, 64%)
CMYKcmyk(69.9%, 65.6%, 0%, 36.1%)
CIE-LABlab(29.73, 33.22, -58.60)
CIE-LCHlch(29.73, 67.37, 299.55°)
OKLaboklab(40.77% 0.0096 -0.1692)
OKLCHoklch(40.77% 0.169 273.2)
XYZxyz(9.2894, 6.1248, 35.3359)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138A3 #A39C31
analogous
#3171A3 #3138A3 #6331A3
triadic
#3138A3 #A33138 #38A331
tetradic
#3138A3 #A33171 #A39C31 #31A363
square
#3138A3 #A33171 #A39C31 #31A363
split-complementary
#3138A3 #A36331 #71A331
monochromatic
#151845 #232874 #3138A3 #4951C8 #787ED6

Accessibility & contrast

On white

9.44
#3138A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3138A3
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138A3#FFFFFF#000000##FFFFFF
##3138A31.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA6
Deuteranopia (green-blind)
#0041A1
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3138a3;
/* rgb */ color: rgb(49, 56, 163);
/* oklch */ color: oklch(40.8% 0.169 273.2);
Tailwind
colors: {
  custom: {
    50: '#796fbf',
    500: '#3138a3',
    950: '#000000',
  },
}
SCSS
$custom: #3138a3;
$custom-light: #796fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#3138a3",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 163
  },
  "hsl": {
    "h": 236.316,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40768,
    "c": 0.16949,
    "h": 273.2
  },
  "luminance": 0.06126
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3138A3

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

Preview Lab → · Contrast checker → · Palette generator →

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