#3138AC#3138AC

#3138AC is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.6% C 0.181 H 272.8°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#3138AC
RGBrgb(49, 56, 172)
HSLhsl(237, 56%, 43%)
HSVhsv(237, 72%, 67%)
CMYKcmyk(71.5%, 67.4%, 0%, 32.5%)
CIE-LABlab(30.54, 36.41, -62.68)
CIE-LCHlch(30.54, 72.48, 300.15°)
OKLaboklab(41.61% 0.0088 -0.1811)
OKLCHoklch(41.61% 0.181 272.8)
XYZxyz(10.1247, 6.4589, 39.7348)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138AC #ACA531
analogous
#3175AC #3138AC #6731AC
triadic
#3138AC #AC3138 #38AC31
tetradic
#3138AC #AC3175 #ACA531 #31AC67
square
#3138AC #AC3175 #ACA531 #31AC67
split-complementary
#3138AC #AC6731 #75AC31
monochromatic
#16194D #23287C #3138AC #4E55CC #7D83DA

Accessibility & contrast

On white

9.16
#3138AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#3138AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3138AC#FFFFFF#000000##FFFFFF
##3138AC1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0042AA
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3138ac;
/* rgb */ color: rgb(49, 56, 172);
/* oklch */ color: oklch(41.6% 0.181 272.8);
Tailwind
colors: {
  custom: {
    50: '#7b6fc6',
    500: '#3138ac',
    950: '#000000',
  },
}
SCSS
$custom: #3138ac;
$custom-light: #7b6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#3138ac",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 236.585,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41614,
    "c": 0.18136,
    "h": 272.8
  },
  "luminance": 0.0646
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3138AC

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

Preview Lab → · Contrast checker → · Palette generator →

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