#34317C#34317C

#34317C is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.123 H 280.1°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#34317C
RGBrgb(52, 49, 124)
HSLhsl(242, 43%, 34%)
HSVhsv(242, 60%, 49%)
CMYKcmyk(58.1%, 60.5%, 0%, 51.4%)
CIE-LABlab(24.89, 24.48, -42.39)
CIE-LCHlch(24.89, 48.95, 300.00°)
OKLaboklab(36.25% 0.0216 -0.1216)
OKLCHoklch(36.25% 0.123 280.1)
XYZxyz(6.1514, 4.3815, 19.5864)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34317C #797C31
analogous
#31547C #34317C #5A317C
triadic
#34317C #7C3431 #317C34
tetradic
#34317C #7C3154 #797C31 #317C5A
square
#34317C #7C3154 #797C31 #317C5A
split-complementary
#34317C #7C5A31 #547C31
monochromatic
#0F0E24 #222050 #34317C #4642A8 #6965C2

Accessibility & contrast

On white

11.19
#34317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#34317C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34317C
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34317C#FFFFFF#000000##FFFFFF
##34317C1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7E
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#0F4351
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #34317c;
/* rgb */ color: rgb(52, 49, 124);
/* oklch */ color: oklch(36.3% 0.123 280.1);
Tailwind
colors: {
  custom: {
    50: '#7369a2',
    500: '#34317c',
    950: '#000000',
  },
}
SCSS
$custom: #34317c;
$custom-light: #7369a2;
$custom-dark: #000000;
JSON
{
  "hex": "#34317c",
  "rgb": {
    "r": 52,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 242.4,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3625,
    "c": 0.12348,
    "h": 280.1
  },
  "luminance": 0.04382
}

Semantic roles & 50–950 ramp

primary
#34317C
secondary
#A7AA5F
accent
#D355CE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #34317C

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

Preview Lab → · Contrast checker → · Palette generator →

#34317C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva