#3148B2#3148B2

#3148B2 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.1% C 0.170 H 269.1°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#3148B2
RGBrgb(49, 72, 178)
HSLhsl(229, 57%, 45%)
HSVhsv(229, 72%, 70%)
CMYKcmyk(72.5%, 59.6%, 0%, 30.2%)
CIE-LABlab(35.01, 28.29, -58.95)
CIE-LCHlch(35.01, 65.39, 295.63°)
OKLaboklab(45.06% -0.0028 -0.1701)
OKLCHoklch(45.06% 0.17 269.1)
XYZxyz(11.6171, 8.5009, 43.1394)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3148B2 #B29B31
analogous
#3189B2 #3148B2 #5A31B2
triadic
#3148B2 #B23148 #48B231
tetradic
#3148B2 #B23189 #B29B31 #31B25A
square
#3148B2 #B23189 #B29B31 #31B25A
split-complementary
#3148B2 #B25A31 #89B231
monochromatic
#172152 #243582 #3148B2 #5168CF #8191DC

Accessibility & contrast

On white

7.78
#3148B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#3148B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3148B2
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3148B2#FFFFFF#000000##FFFFFF
##3148B21.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#006376
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3148b2;
/* rgb */ color: rgb(49, 72, 178);
/* oklch */ color: oklch(45.1% 0.170 269.1);
Tailwind
colors: {
  custom: {
    50: '#7b7aca',
    500: '#3148b2',
    950: '#000000',
  },
}
SCSS
$custom: #3148b2;
$custom-light: #7b7aca;
$custom-dark: #000000;
JSON
{
  "hex": "#3148b2",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 178
  },
  "hsl": {
    "h": 229.302,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45057,
    "c": 0.17012,
    "h": 269.1
  },
  "luminance": 0.08502
}

Semantic roles & 50–950 ramp

primary
#3148B2
secondary
#C5B879
accent
#C548E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #3148B2

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

Preview Lab → · Contrast checker → · Palette generator →

#3148B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva