#3A307F#3A307F

#3A307F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.128 H 283.9°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#3A307F
RGBrgb(58, 48, 127)
HSLhsl(248, 45%, 34%)
HSVhsv(248, 62%, 50%)
CMYKcmyk(54.3%, 62.2%, 0%, 50.2%)
CIE-LABlab(25.40, 27.40, -43.44)
CIE-LCHlch(25.40, 51.36, 302.24°)
OKLaboklab(36.83% 0.0308 -0.1245)
OKLCHoklch(36.83% 0.128 283.9)
XYZxyz(6.6315, 4.5454, 20.6025)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A307F #757F30
analogous
#304E7F #3A307F #62307F
triadic
#3A307F #7F3A30 #307F3A
tetradic
#3A307F #7F304E #757F30 #307F62
square
#3A307F #7F304E #757F30 #307F62
split-complementary
#3A307F #7F6230 #4E7F30
monochromatic
#110E26 #261F53 #3A307F #4E41AB #7165C5

Accessibility & contrast

On white

11.00
#3A307F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3A307F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A307F
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A307F#FFFFFF#000000##FFFFFF
##3A307F1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#1E4352
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3a307f;
/* rgb */ color: rgb(58, 48, 127);
/* oklch */ color: oklch(36.8% 0.128 283.9);
Tailwind
colors: {
  custom: {
    50: '#7769a5',
    500: '#3a307f',
    950: '#000000',
  },
}
SCSS
$custom: #3a307f;
$custom-light: #7769a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a307f",
  "rgb": {
    "r": 58,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 247.595,
    "s": 45.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36826,
    "c": 0.12824,
    "h": 283.9
  },
  "luminance": 0.04546
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3A307F

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

Preview Lab → · Contrast checker → · Palette generator →

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