#34238E#34238E

#34238E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.6% C 0.166 H 281.1°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#34238E
RGBrgb(52, 35, 142)
HSLhsl(250, 60%, 35%)
HSVhsv(250, 75%, 56%)
CMYKcmyk(63.4%, 75.4%, 0%, 44.3%)
CIE-LABlab(23.29, 39.23, -56.30)
CIE-LCHlch(23.29, 68.62, 304.87°)
OKLaboklab(35.59% 0.032 -0.1624)
OKLCHoklch(35.59% 0.166 281.1)
XYZxyz(6.8982, 3.8846, 25.9722)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34238E #7D8E23
analogous
#23478E #34238E #6A238E
triadic
#34238E #8E3423 #238E34
tetradic
#34238E #8E2347 #7D8E23 #238E6A
square
#34238E #8E2347 #7D8E23 #238E6A
split-complementary
#34238E #8E6A23 #478E23
monochromatic
#100B2C #22175D #34238E #462FBF #6A56D5

Accessibility & contrast

On white

11.82
#34238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#34238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34238E
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34238E#FFFFFF#000000##FFFFFF
##34238E1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#00348C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #34238e;
/* rgb */ color: rgb(52, 35, 142);
/* oklch */ color: oklch(35.6% 0.166 281.1);
Tailwind
colors: {
  custom: {
    50: '#7760b0',
    500: '#34238e',
    950: '#000000',
  },
}
SCSS
$custom: #34238e;
$custom-light: #7760b0;
$custom-dark: #000000;
JSON
{
  "hex": "#34238e",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 249.533,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35585,
    "c": 0.16551,
    "h": 281.1
  },
  "luminance": 0.03885
}

Semantic roles & 50–950 ramp

primary
#34238E
secondary
#A9B953
accent
#E444CA
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #34238E

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

Preview Lab → · Contrast checker → · Palette generator →

#34238E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva