#34279D#34279D

#34279D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.180 H 278.3°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#34279D
RGBrgb(52, 39, 157)
HSLhsl(247, 60%, 38%)
HSVhsv(247, 75%, 62%)
CMYKcmyk(66.9%, 75.2%, 0%, 38.4%)
CIE-LABlab(25.61, 41.82, -61.72)
CIE-LCHlch(25.61, 74.55, 304.12°)
OKLaboklab(37.69% 0.0259 -0.1782)
OKLCHoklch(37.69% 0.18 278.3)
XYZxyz(8.2255, 4.6147, 32.3490)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34279D #909D27
analogous
#27559D #34279D #6F279D
triadic
#34279D #9D3427 #279D34
tetradic
#34279D #9D2755 #909D27 #279D6F
square
#34279D #9D2755 #909D27 #279D6F
split-complementary
#34279D #9D6F27 #559D27
monochromatic
#140F3B #241B6C #34279D #4535CD #7266D9

Accessibility & contrast

On white

10.92
#34279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#34279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34279D
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34279D#FFFFFF#000000##FFFFFF
##34279D1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A0
Deuteranopia (green-blind)
#00389B
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #34279d;
/* rgb */ color: rgb(52, 39, 157);
/* oklch */ color: oklch(37.7% 0.180 278.3);
Tailwind
colors: {
  custom: {
    50: '#7a63bb',
    500: '#34279d',
    950: '#000000',
  },
}
SCSS
$custom: #34279d;
$custom-light: #7a63bb;
$custom-dark: #000000;
JSON
{
  "hex": "#34279d",
  "rgb": {
    "r": 52,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 246.61,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37687,
    "c": 0.1801,
    "h": 278.3
  },
  "luminance": 0.04615
}

Semantic roles & 50–950 ramp

primary
#34279D
secondary
#B4BF61
accent
#E344D2
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #34279D

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

Preview Lab → · Contrast checker → · Palette generator →

#34279D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva