#34238F#34238F

#34238F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.167 H 281.0°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#34238F
RGBrgb(52, 35, 143)
HSLhsl(249, 61%, 35%)
HSVhsv(249, 76%, 56%)
CMYKcmyk(63.6%, 75.5%, 0%, 43.9%)
CIE-LABlab(23.39, 39.54, -56.75)
CIE-LCHlch(23.39, 69.17, 304.87°)
OKLaboklab(35.69% 0.0318 -0.1637)
OKLCHoklch(35.69% 0.167 281)
XYZxyz(6.9736, 3.9148, 26.3694)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34238F #7E8F23
analogous
#23488F #34238F #6A238F
triadic
#34238F #8F3423 #238F34
tetradic
#34238F #8F2348 #7E8F23 #238F6A
square
#34238F #8F2348 #7E8F23 #238F6A
split-complementary
#34238F #8F6A23 #488F23
monochromatic
#100B2D #22175E #34238F #462FC0 #6B57D6

Accessibility & contrast

On white

11.78
#34238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34238F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34238F#FFFFFF#000000##FFFFFF
##34238F1.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)
#003B92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #34238f;
/* rgb */ color: rgb(52, 35, 143);
/* oklch */ color: oklch(35.7% 0.167 281.0);
Tailwind
colors: {
  custom: {
    50: '#7860b1',
    500: '#34238f',
    950: '#000000',
  },
}
SCSS
$custom: #34238f;
$custom-light: #7860b1;
$custom-dark: #000000;
JSON
{
  "hex": "#34238f",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 249.444,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35687,
    "c": 0.16677,
    "h": 281
  },
  "luminance": 0.03915
}

Semantic roles & 50–950 ramp

primary
#34238F
secondary
#AABA54
accent
#E444CB
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #34238F

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

Preview Lab → · Contrast checker → · Palette generator →

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