#34238C#34238C

#34238C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.163 H 281.5°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#34238C
RGBrgb(52, 35, 140)
HSLhsl(250, 60%, 34%)
HSVhsv(250, 75%, 55%)
CMYKcmyk(62.9%, 75%, 0%, 45.1%)
CIE-LABlab(23.08, 38.58, -55.39)
CIE-LCHlch(23.08, 67.50, 304.86°)
OKLaboklab(35.38% 0.0325 -0.1597)
OKLCHoklch(35.38% 0.163 281.5)
XYZxyz(6.7493, 3.8251, 25.1885)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34238C #7B8C23
analogous
#23478C #34238C #69238C
triadic
#34238C #8C3423 #238C34
tetradic
#34238C #8C2347 #7B8C23 #238C69
square
#34238C #8C2347 #7B8C23 #238C69
split-complementary
#34238C #8C6923 #478C23
monochromatic
#100B2A #22175B #34238C #462FBD #6A55D4

Accessibility & contrast

On white

11.90
#34238C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#34238C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34238C
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34238C#FFFFFF#000000##FFFFFF
##34238C1.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #34238c;
/* rgb */ color: rgb(52, 35, 140);
/* oklch */ color: oklch(35.4% 0.163 281.5);
Tailwind
colors: {
  custom: {
    50: '#7760af',
    500: '#34238c',
    950: '#000000',
  },
}
SCSS
$custom: #34238c;
$custom-light: #7760af;
$custom-dark: #000000;
JSON
{
  "hex": "#34238c",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 140
  },
  "hsl": {
    "h": 249.714,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35381,
    "c": 0.16299,
    "h": 281.5
  },
  "luminance": 0.03826
}

Semantic roles & 50–950 ramp

primary
#34238C
secondary
#A8B852
accent
#E345C9
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #34238C

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

Preview Lab → · Contrast checker → · Palette generator →

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