#3A307B#3A307B

#3A307B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.123 H 284.6°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#3A307B
RGBrgb(58, 48, 123)
HSLhsl(248, 44%, 34%)
HSVhsv(248, 61%, 48%)
CMYKcmyk(52.8%, 61%, 0%, 51.8%)
CIE-LABlab(25.09, 26.07, -41.43)
CIE-LCHlch(25.09, 48.95, 302.18°)
OKLaboklab(36.5% 0.0309 -0.1185)
OKLCHoklch(36.5% 0.123 284.6)
XYZxyz(6.3760, 4.4432, 19.2567)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A307B #717B30
analogous
#304B7B #3A307B #5F307B
triadic
#3A307B #7B3A30 #307B3A
tetradic
#3A307B #7B304B #717B30 #307B5F
square
#3A307B #7B304B #717B30 #307B5F
split-complementary
#3A307B #7B5F30 #4B7B30
monochromatic
#100E23 #251F4F #3A307B #4F41A7 #7063C2

Accessibility & contrast

On white

11.12
#3A307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3A307B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A307B
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A307B#FFFFFF#000000##FFFFFF
##3A307B1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#003979
Tritanopia (blue-blind)
#214150
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a307b;
/* rgb */ color: rgb(58, 48, 123);
/* oklch */ color: oklch(36.5% 0.123 284.6);
Tailwind
colors: {
  custom: {
    50: '#7668a2',
    500: '#3a307b',
    950: '#000000',
  },
}
SCSS
$custom: #3a307b;
$custom-light: #7668a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a307b",
  "rgb": {
    "r": 58,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 248,
    "s": 43.86,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36497,
    "c": 0.12252,
    "h": 284.6
  },
  "luminance": 0.04444
}

Semantic roles & 50–950 ramp

primary
#3A307B
secondary
#9FA95D
accent
#D454C3
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #3A307B

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

Preview Lab → · Contrast checker → · Palette generator →

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