#3138B9#3138B9

#3138B9 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.9% C 0.198 H 272.1°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#3138B9
RGBrgb(49, 56, 185)
HSLhsl(237, 58%, 46%)
HSVhsv(237, 74%, 73%)
CMYKcmyk(73.5%, 69.7%, 0%, 27.5%)
CIE-LABlab(31.77, 40.93, -68.40)
CIE-LCHlch(31.77, 79.71, 300.90°)
OKLaboklab(42.87% 0.0073 -0.1979)
OKLCHoklch(42.87% 0.198 272.1)
XYZxyz(11.4348, 6.9829, 46.6347)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138B9 #B9B231
analogous
#317CB9 #3138B9 #6E31B9
triadic
#3138B9 #B93138 #38B931
tetradic
#3138B9 #B9317C #B9B231 #31B96E
square
#3138B9 #B9317C #B9B231 #31B96E
split-complementary
#3138B9 #B96E31 #7CB931
monochromatic
#171B58 #242989 #3138B9 #555CD2 #868ADF

Accessibility & contrast

On white

8.76
#3138B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#3138B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3138B9#FFFFFF#000000##FFFFFF
##3138B91.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BD
Deuteranopia (green-blind)
#0044B7
Tritanopia (blue-blind)
#005C74
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3138b9;
/* rgb */ color: rgb(49, 56, 185);
/* oklch */ color: oklch(42.9% 0.198 272.1);
Tailwind
colors: {
  custom: {
    50: '#7e6fcf',
    500: '#3138b9',
    950: '#000000',
  },
}
SCSS
$custom: #3138b9;
$custom-light: #7e6fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3138b9",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 185
  },
  "hsl": {
    "h": 236.912,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.42873,
    "c": 0.198,
    "h": 272.1
  },
  "luminance": 0.06984
}

Semantic roles & 50–950 ramp

primary
#3138B9
secondary
#C8C57D
accent
#D946E1
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #3138B9

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

Preview Lab → · Contrast checker → · Palette generator →

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