#3138AE#3138AE

#3138AE is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.8% C 0.184 H 272.7°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#3138AE
RGBrgb(49, 56, 174)
HSLhsl(237, 56%, 44%)
HSVhsv(237, 72%, 68%)
CMYKcmyk(71.8%, 67.8%, 0%, 31.8%)
CIE-LABlab(30.73, 37.11, -63.57)
CIE-LCHlch(30.73, 73.61, 300.28°)
OKLaboklab(41.8% 0.0086 -0.1838)
OKLCHoklch(41.8% 0.184 272.7)
XYZxyz(10.3182, 6.5363, 40.7540)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138AE #AEA731
analogous
#3176AE #3138AE #6831AE
triadic
#3138AE #AE3138 #38AE31
tetradic
#3138AE #AE3176 #AEA731 #31AE68
square
#3138AE #AE3176 #AEA731 #31AE68
split-complementary
#3138AE #AE6831 #76AE31
monochromatic
#16194E #24297E #3138AE #4F56CD #7F84DB

Accessibility & contrast

On white

9.10
#3138AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#3138AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3138AE#FFFFFF#000000##FFFFFF
##3138AE1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB2
Deuteranopia (green-blind)
#0042AC
Tritanopia (blue-blind)
#00586E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3138ae;
/* rgb */ color: rgb(49, 56, 174);
/* oklch */ color: oklch(41.8% 0.184 272.7);
Tailwind
colors: {
  custom: {
    50: '#7b6fc7',
    500: '#3138ae',
    950: '#000000',
  },
}
SCSS
$custom: #3138ae;
$custom-light: #7b6fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#3138ae",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 236.64,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41804,
    "c": 0.18396,
    "h": 272.7
  },
  "luminance": 0.06537
}

Semantic roles & 50–950 ramp

primary
#3138AE
secondary
#C4BF77
accent
#D748DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #3138AE

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

Preview Lab → · Contrast checker → · Palette generator →

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