#3145B8#3145B8

#3145B8 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.0% C 0.182 H 269.8°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#3145B8
RGBrgb(49, 69, 184)
HSLhsl(231, 58%, 46%)
HSVhsv(231, 73%, 72%)
CMYKcmyk(73.4%, 62.5%, 0%, 27.8%)
CIE-LABlab(34.74, 32.43, -62.94)
CIE-LCHlch(34.74, 70.80, 297.26°)
OKLaboklab(45.01% -0.0007 -0.1818)
OKLCHoklch(45.01% 0.182 269.8)
XYZxyz(12.0435, 8.3686, 46.3187)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3145B8 #B8A431
analogous
#3188B8 #3145B8 #6031B8
triadic
#3145B8 #B83145 #45B831
tetradic
#3145B8 #B83188 #B8A431 #31B860
square
#3145B8 #B83188 #B8A431 #31B860
split-complementary
#3145B8 #B86031 #88B831
monochromatic
#172157 #243388 #3145B8 #5567D2 #8592DE

Accessibility & contrast

On white

7.85
#3145B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#3145B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3145B8
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3145B8#FFFFFF#000000##FFFFFF
##3145B81.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BC
Deuteranopia (green-blind)
#004CB6
Tritanopia (blue-blind)
#006378
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #3145b8;
/* rgb */ color: rgb(49, 69, 184);
/* oklch */ color: oklch(45.0% 0.182 269.8);
Tailwind
colors: {
  custom: {
    50: '#7c78ce',
    500: '#3145b8',
    950: '#000000',
  },
}
SCSS
$custom: #3145b8;
$custom-light: #7c78ce;
$custom-dark: #000000;
JSON
{
  "hex": "#3145b8",
  "rgb": {
    "r": 49,
    "g": 69,
    "b": 184
  },
  "hsl": {
    "h": 231.111,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45014,
    "c": 0.18182,
    "h": 269.8
  },
  "luminance": 0.0837
}

Semantic roles & 50–950 ramp

primary
#3145B8
secondary
#C8BD7D
accent
#CA47E1
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #3145B8

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

Preview Lab → · Contrast checker → · Palette generator →

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