#3040C1#3040C1

#3040C1 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.9% C 0.200 H 270.3°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#3040C1
RGBrgb(48, 64, 193)
HSLhsl(233, 60%, 47%)
HSVhsv(233, 75%, 76%)
CMYKcmyk(75.1%, 66.8%, 0%, 24.3%)
CIE-LABlab(34.28, 38.72, -68.98)
CIE-LCHlch(34.28, 79.10, 299.31°)
OKLaboklab(44.91% 0.001 -0.1996)
OKLCHoklch(44.91% 0.2 270.3)
XYZxyz(12.6747, 8.1441, 51.3457)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3040C1 #C1B130
analogous
#3089C1 #3040C1 #6830C1
triadic
#3040C1 #C13040 #40C130
tetradic
#3040C1 #C13089 #C1B130 #30C168
square
#3040C1 #C13089 #C1B130 #30C168
split-complementary
#3040C1 #C16830 #89C130
monochromatic
#181F5F #243090 #3040C1 #5966D6 #8A93E2

Accessibility & contrast

On white

7.99
#3040C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#3040C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3040C1
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3040C1#FFFFFF#000000##FFFFFF
##3040C11.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C5
Deuteranopia (green-blind)
#004ABF
Tritanopia (blue-blind)
#00637B
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #3040c1;
/* rgb */ color: rgb(48, 64, 193);
/* oklch */ color: oklch(44.9% 0.200 270.3);
Tailwind
colors: {
  custom: {
    50: '#7f75d5',
    500: '#3040c1',
    950: '#000000',
  },
}
SCSS
$custom: #3040c1;
$custom-light: #7f75d5;
$custom-dark: #000000;
JSON
{
  "hex": "#3040c1",
  "rgb": {
    "r": 48,
    "g": 64,
    "b": 193
  },
  "hsl": {
    "h": 233.379,
    "s": 60.166,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44908,
    "c": 0.19957,
    "h": 270.3
  },
  "luminance": 0.08145
}

Semantic roles & 50–950 ramp

primary
#3040C1
secondary
#CCC381
accent
#D244E3
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #3040C1

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

Preview Lab → · Contrast checker → · Palette generator →

#3040C1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva