#3041A7#3041A7

#3041A7 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.164 H 270.5°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#3041A7
RGBrgb(48, 65, 167)
HSLhsl(231, 55%, 42%)
HSVhsv(231, 71%, 65%)
CMYKcmyk(71.3%, 61.1%, 0%, 34.5%)
CIE-LABlab(32.25, 28.70, -56.88)
CIE-LCHlch(32.25, 63.71, 296.77°)
OKLaboklab(42.72% 0.0015 -0.1641)
OKLCHoklch(42.72% 0.164 270.5)
XYZxyz(10.0819, 7.1980, 37.4097)
Luminance0.0720 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3041A7 #A79630
analogous
#307CA7 #3041A7 #5B30A7
triadic
#3041A7 #A73041 #41A730
tetradic
#3041A7 #A7307C #A79630 #30A75B
square
#3041A7 #A7307C #A79630 #30A75B
split-complementary
#3041A7 #A75B30 #7CA730
monochromatic
#151C48 #222E77 #3041A7 #495CCB #7987D8

Accessibility & contrast

On white

8.61
#3041A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#3041A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3041A7
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3041A7#FFFFFF#000000##FFFFFF
##3041A71.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #3041a7;
/* rgb */ color: rgb(48, 65, 167);
/* oklch */ color: oklch(42.7% 0.164 270.5);
Tailwind
colors: {
  custom: {
    50: '#7975c2',
    500: '#3041a7',
    950: '#000000',
  },
}
SCSS
$custom: #3041a7;
$custom-light: #7975c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3041a7",
  "rgb": {
    "r": 48,
    "g": 65,
    "b": 167
  },
  "hsl": {
    "h": 231.429,
    "s": 55.349,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42719,
    "c": 0.16414,
    "h": 270.5
  },
  "luminance": 0.07199
}

Semantic roles & 50–950 ramp

primary
#3041A7
secondary
#C1B672
accent
#C949DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #3041A7

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

Preview Lab → · Contrast checker → · Palette generator →

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