#3138A2#3138A2

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

Color values

HEX#3138A2
RGBrgb(49, 56, 162)
HSLhsl(236, 54%, 41%)
HSVhsv(236, 70%, 64%)
CMYKcmyk(69.8%, 65.4%, 0%, 36.5%)
CIE-LABlab(29.64, 32.87, -58.15)
CIE-LCHlch(29.64, 66.79, 299.48°)
OKLaboklab(40.68% 0.0096 -0.1679)
OKLCHoklch(40.68% 0.168 273.3)
XYZxyz(9.2002, 6.0891, 34.8659)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138A2 #A29B31
analogous
#3171A2 #3138A2 #6331A2
triadic
#3138A2 #A23138 #38A231
tetradic
#3138A2 #A23171 #A29B31 #31A263
square
#3138A2 #A23171 #A29B31 #31A263
split-complementary
#3138A2 #A26331 #71A231
monochromatic
#151844 #232873 #3138A2 #4850C8 #777DD6

Accessibility & contrast

On white

9.47
#3138A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#3138A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3138A2
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3138A2#FFFFFF#000000##FFFFFF
##3138A21.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3138a2;
/* rgb */ color: rgb(49, 56, 162);
/* oklch */ color: oklch(40.7% 0.168 273.3);
Tailwind
colors: {
  custom: {
    50: '#796fbe',
    500: '#3138a2',
    950: '#000000',
  },
}
SCSS
$custom: #3138a2;
$custom-light: #796fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3138a2",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 236.283,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40676,
    "c": 0.16816,
    "h": 273.3
  },
  "luminance": 0.0609
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3138A2

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

Preview Lab → · Contrast checker → · Palette generator →

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