#34238D#34238D

#34238D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.164 H 281.3°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#34238D
RGBrgb(52, 35, 141)
HSLhsl(250, 60%, 35%)
HSVhsv(250, 75%, 55%)
CMYKcmyk(63.1%, 75.2%, 0%, 44.7%)
CIE-LABlab(23.19, 38.90, -55.85)
CIE-LCHlch(23.19, 68.06, 304.86°)
OKLaboklab(35.48% 0.0322 -0.1611)
OKLCHoklch(35.48% 0.164 281.3)
XYZxyz(6.8234, 3.8547, 25.5786)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34238D #7C8D23
analogous
#23478D #34238D #69238D
triadic
#34238D #8D3423 #238D34
tetradic
#34238D #8D2347 #7C8D23 #238D69
square
#34238D #8D2347 #7C8D23 #238D69
split-complementary
#34238D #8D6923 #478D23
monochromatic
#100B2B #22175C #34238D #462FBE #6A55D5

Accessibility & contrast

On white

11.86
#34238D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34238D
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34238D#FFFFFF#000000##FFFFFF
##34238D1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #34238d;
/* rgb */ color: rgb(52, 35, 141);
/* oklch */ color: oklch(35.5% 0.164 281.3);
Tailwind
colors: {
  custom: {
    50: '#7760af',
    500: '#34238d',
    950: '#000000',
  },
}
SCSS
$custom: #34238d;
$custom-light: #7760af;
$custom-dark: #000000;
JSON
{
  "hex": "#34238d",
  "rgb": {
    "r": 52,
    "g": 35,
    "b": 141
  },
  "hsl": {
    "h": 249.623,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35483,
    "c": 0.16425,
    "h": 281.3
  },
  "luminance": 0.03855
}

Semantic roles & 50–950 ramp

primary
#34238D
secondary
#A9B953
accent
#E344CA
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #34238D

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

Preview Lab → · Contrast checker → · Palette generator →

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