#3158A9#3158A9

#3158A9 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.7% C 0.138 H 262.9°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#3158A9
RGBrgb(49, 88, 169)
HSLhsl(221, 55%, 43%)
HSVhsv(221, 71%, 66%)
CMYKcmyk(71%, 47.9%, 0%, 33.7%)
CIE-LABlab(38.72, 14.39, -47.61)
CIE-LCHlch(38.72, 49.73, 286.82°)
OKLaboklab(47.66% -0.0169 -0.1365)
OKLCHoklch(47.66% 0.138 262.9)
XYZxyz(11.9152, 10.4958, 38.9264)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3158A9 #A98231
analogous
#3194A9 #3158A9 #4631A9
triadic
#3158A9 #A93158 #58A931
tetradic
#3158A9 #A93194 #A98231 #31A946
square
#3158A9 #A93194 #A98231 #31A946
split-complementary
#3158A9 #A94631 #94A931
monochromatic
#15274A #233F7A #3158A9 #4C75CB #7C9AD9

Accessibility & contrast

On white

6.78
#3158A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#3158A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3158A9
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3158A9#FFFFFF#000000##FFFFFF
##3158A91.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D61AC
Deuteranopia (green-blind)
#0F56A7
Tritanopia (blue-blind)
#006B78
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #3158a9;
/* rgb */ color: rgb(49, 88, 169);
/* oklch */ color: oklch(47.7% 0.138 262.9);
Tailwind
colors: {
  custom: {
    50: '#7886c3',
    500: '#3158a9',
    950: '#000000',
  },
}
SCSS
$custom: #3158a9;
$custom-light: #7886c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3158a9",
  "rgb": {
    "r": 49,
    "g": 88,
    "b": 169
  },
  "hsl": {
    "h": 220.5,
    "s": 55.046,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47656,
    "c": 0.13752,
    "h": 262.9
  },
  "luminance": 0.10497
}

Semantic roles & 50–950 ramp

primary
#3158A9
secondary
#C1A874
accent
#AE49DE
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #3158A9

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

Preview Lab → · Contrast checker → · Palette generator →

#3158A9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva