#3138AA#3138AA

#3138AA is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.4% C 0.179 H 272.9°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#3138AA
RGBrgb(49, 56, 170)
HSLhsl(237, 55%, 43%)
HSVhsv(237, 71%, 67%)
CMYKcmyk(71.2%, 67.1%, 0%, 33.3%)
CIE-LABlab(30.36, 35.70, -61.78)
CIE-LCHlch(30.36, 71.36, 300.02°)
OKLaboklab(41.42% 0.009 -0.1785)
OKLCHoklch(41.42% 0.179 272.9)
XYZxyz(9.9341, 6.3826, 38.7309)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138AA #AAA331
analogous
#3174AA #3138AA #6631AA
triadic
#3138AA #AA3138 #38AA31
tetradic
#3138AA #AA3174 #AAA331 #31AA66
square
#3138AA #AA3174 #AAA331 #31AA66
split-complementary
#3138AA #AA6631 #74AA31
monochromatic
#16194B #23287A #3138AA #4D54CC #7C82D9

Accessibility & contrast

On white

9.22
#3138AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#3138AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3138AA#FFFFFF#000000##FFFFFF
##3138AA1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DAE
Deuteranopia (green-blind)
#0042A8
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #3138aa;
/* rgb */ color: rgb(49, 56, 170);
/* oklch */ color: oklch(41.4% 0.179 272.9);
Tailwind
colors: {
  custom: {
    50: '#7a6fc4',
    500: '#3138aa',
    950: '#000000',
  },
}
SCSS
$custom: #3138aa;
$custom-light: #7a6fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#3138aa",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 170
  },
  "hsl": {
    "h": 236.529,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41424,
    "c": 0.17875,
    "h": 272.9
  },
  "luminance": 0.06384
}

Semantic roles & 50–950 ramp

primary
#3138AA
secondary
#C2BD75
accent
#D649DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3138AA

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

Preview Lab → · Contrast checker → · Palette generator →

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