#3138B8#3138B8

#3138B8 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.8% C 0.197 H 272.2°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#3138B8
RGBrgb(49, 56, 184)
HSLhsl(237, 58%, 46%)
HSVhsv(237, 73%, 72%)
CMYKcmyk(73.4%, 69.6%, 0%, 27.8%)
CIE-LABlab(31.67, 40.59, -67.97)
CIE-LCHlch(31.67, 79.16, 300.85°)
OKLaboklab(42.78% 0.0074 -0.1966)
OKLCHoklch(42.78% 0.197 272.2)
XYZxyz(11.3296, 6.9408, 46.0807)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3138B8 #B8B131
analogous
#317BB8 #3138B8 #6D31B8
triadic
#3138B8 #B83138 #38B831
tetradic
#3138B8 #B8317B #B8B131 #31B86D
square
#3138B8 #B8317B #B8B131 #31B86D
split-complementary
#3138B8 #B86D31 #7BB831
monochromatic
#171B57 #242988 #3138B8 #555BD2 #858ADE

Accessibility & contrast

On white

8.79
#3138B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#3138B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3138B8#FFFFFF#000000##FFFFFF
##3138B81.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BC
Deuteranopia (green-blind)
#0044B6
Tritanopia (blue-blind)
#005B74
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3138b8;
/* rgb */ color: rgb(49, 56, 184);
/* oklch */ color: oklch(42.8% 0.197 272.2);
Tailwind
colors: {
  custom: {
    50: '#7e6fce',
    500: '#3138b8',
    950: '#000000',
  },
}
SCSS
$custom: #3138b8;
$custom-light: #7e6fce;
$custom-dark: #000000;
JSON
{
  "hex": "#3138b8",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 184
  },
  "hsl": {
    "h": 236.889,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.42775,
    "c": 0.19674,
    "h": 272.2
  },
  "luminance": 0.06942
}

Semantic roles & 50–950 ramp

primary
#3138B8
secondary
#C8C47D
accent
#D947E1
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #3138B8

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

Preview Lab → · Contrast checker → · Palette generator →

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