#3A307E#3A307E

#3A307E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.7% C 0.127 H 284.1°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#3A307E
RGBrgb(58, 48, 126)
HSLhsl(248, 45%, 34%)
HSVhsv(248, 62%, 49%)
CMYKcmyk(54%, 61.9%, 0%, 50.6%)
CIE-LABlab(25.32, 27.07, -42.94)
CIE-LCHlch(25.32, 50.76, 302.22°)
OKLaboklab(36.74% 0.0308 -0.123)
OKLCHoklch(36.74% 0.127 284.1)
XYZxyz(6.5666, 4.5194, 20.2609)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A307E #747E30
analogous
#304D7E #3A307E #61307E
triadic
#3A307E #7E3A30 #307E3A
tetradic
#3A307E #7E304D #747E30 #307E61
square
#3A307E #7E304D #747E30 #307E61
split-complementary
#3A307E #7E6130 #4D7E30
monochromatic
#110E25 #261F52 #3A307E #4E41AA #7164C4

Accessibility & contrast

On white

11.03
#3A307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3A307E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A307E
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A307E#FFFFFF#000000##FFFFFF
##3A307E1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#1F4252
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a307e;
/* rgb */ color: rgb(58, 48, 126);
/* oklch */ color: oklch(36.7% 0.127 284.1);
Tailwind
colors: {
  custom: {
    50: '#7769a4',
    500: '#3a307e',
    950: '#000000',
  },
}
SCSS
$custom: #3a307e;
$custom-light: #7769a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a307e",
  "rgb": {
    "r": 58,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 247.692,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36743,
    "c": 0.12682,
    "h": 284.1
  },
  "luminance": 0.0452
}

Semantic roles & 50–950 ramp

primary
#3A307E
secondary
#A1AB5F
accent
#D553C4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #3A307E

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

Preview Lab → · Contrast checker → · Palette generator →

#3A307E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva