#34397F#34397F

#34397F is a dark, moderate blue. Relative luminance 0.052; OKLCH L 38.1% C 0.116 H 276.3°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#34397F
RGBrgb(52, 57, 127)
HSLhsl(236, 42%, 35%)
HSVhsv(236, 59%, 50%)
CMYKcmyk(59.1%, 55.1%, 0%, 50.2%)
CIE-LABlab(27.26, 20.15, -40.45)
CIE-LCHlch(27.26, 45.19, 296.48°)
OKLaboklab(38.09% 0.0127 -0.1158)
OKLCHoklch(38.09% 0.116 276.3)
XYZxyz(6.7088, 5.1881, 20.7224)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34397F #7F7A34
analogous
#345E7F #34397F #54347F
triadic
#34397F #7F3439 #397F34
tetradic
#34397F #7F345E #7F7A34 #347F54
square
#34397F #7F345E #7F7A34 #347F54
split-complementary
#34397F #7F5434 #5E7F34
monochromatic
#101228 #222654 #34397F #464CAA #6B71C2

Accessibility & contrast

On white

10.31
#34397F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#34397F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34397F
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34397F#FFFFFF#000000##FFFFFF
##34397F1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4481
Deuteranopia (green-blind)
#003D7E
Tritanopia (blue-blind)
#074956
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #34397f;
/* rgb */ color: rgb(52, 57, 127);
/* oklch */ color: oklch(38.1% 0.116 276.3);
Tailwind
colors: {
  custom: {
    50: '#736fa5',
    500: '#34397f',
    950: '#000000',
  },
}
SCSS
$custom: #34397f;
$custom-light: #736fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#34397f",
  "rgb": {
    "r": 52,
    "g": 57,
    "b": 127
  },
  "hsl": {
    "h": 236,
    "s": 41.899,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38086,
    "c": 0.11649,
    "h": 276.3
  },
  "luminance": 0.05189
}

Semantic roles & 50–950 ramp

primary
#34397F
secondary
#AAA664
accent
#C956D2
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #34397F

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

Preview Lab → · Contrast checker → · Palette generator →

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