#34258B#34258B

#34258B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.159 H 281.3°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#34258B
RGBrgb(52, 37, 139)
HSLhsl(249, 58%, 35%)
HSVhsv(249, 73%, 55%)
CMYKcmyk(62.6%, 73.4%, 0%, 45.5%)
CIE-LABlab(23.39, 37.12, -54.26)
CIE-LCHlch(23.39, 65.74, 304.38°)
OKLaboklab(35.57% 0.0312 -0.1564)
OKLCHoklch(35.57% 0.159 281.3)
XYZxyz(6.7365, 3.9168, 24.8221)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34258B #7C8B25
analogous
#25498B #34258B #67258B
triadic
#34258B #8B3425 #258B34
tetradic
#34258B #8B2549 #7C8B25 #258B67
square
#34258B #8B2549 #7C8B25 #258B67
split-complementary
#34258B #8B6725 #498B25
monochromatic
#100B2A #22185B #34258B #4632BB #6A58D3

Accessibility & contrast

On white

11.78
#34258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#34258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34258B
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34258B#FFFFFF#000000##FFFFFF
##34258B1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003489
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #34258b;
/* rgb */ color: rgb(52, 37, 139);
/* oklch */ color: oklch(35.6% 0.159 281.3);
Tailwind
colors: {
  custom: {
    50: '#7761ae',
    500: '#34258b',
    950: '#000000',
  },
}
SCSS
$custom: #34258b;
$custom-light: #7761ae;
$custom-dark: #000000;
JSON
{
  "hex": "#34258b",
  "rgb": {
    "r": 52,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 248.824,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35571,
    "c": 0.15949,
    "h": 281.3
  },
  "luminance": 0.03917
}

Semantic roles & 50–950 ramp

primary
#34258B
secondary
#A9B755
accent
#E147CA
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #34258B

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

Preview Lab → · Contrast checker → · Palette generator →

#34258B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva