#3041A5#3041A5

#3041A5 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.161 H 270.6°. Best body text is #FFFFFF at 8.66:1 contrast (WCAG AA passes).

Color values

HEX#3041A5
RGBrgb(48, 65, 165)
HSLhsl(231, 55%, 42%)
HSVhsv(231, 71%, 65%)
CMYKcmyk(70.9%, 60.6%, 0%, 35.3%)
CIE-LABlab(32.09, 27.96, -55.95)
CIE-LCHlch(32.09, 62.55, 296.55°)
OKLaboklab(42.55% 0.0016 -0.1614)
OKLCHoklch(42.55% 0.161 270.6)
XYZxyz(9.8984, 7.1246, 36.4435)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3041A5 #A59430
analogous
#307CA5 #3041A5 #5A30A5
triadic
#3041A5 #A53041 #41A530
tetradic
#3041A5 #A5307C #A59430 #30A55A
square
#3041A5 #A5307C #A59430 #30A55A
split-complementary
#3041A5 #A55A30 #7CA530
monochromatic
#141C46 #222E76 #3041A5 #485BCA #7886D8

Accessibility & contrast

On white

8.66
#3041A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#3041A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3041A5
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3041A5#FFFFFF#000000##FFFFFF
##3041A51.008.662.438.66
#FFFFFF8.661.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #3041a5;
/* rgb */ color: rgb(48, 65, 165);
/* oklch */ color: oklch(42.5% 0.161 270.6);
Tailwind
colors: {
  custom: {
    50: '#7875c1',
    500: '#3041a5',
    950: '#000000',
  },
}
SCSS
$custom: #3041a5;
$custom-light: #7875c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3041a5",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 165
  },
  "hsl": {
    "h": 231.282,
    "s": 54.93,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42546,
    "c": 0.1614,
    "h": 270.6
  },
  "luminance": 0.07126
}

Semantic roles & 50–950 ramp

primary
#3041A5
secondary
#C0B471
accent
#C94ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3041A5

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

Preview Lab → · Contrast checker → · Palette generator →

#3041A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva