#343F9B#343F9B

#343F9B is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.5% C 0.149 H 272.9°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#343F9B
RGBrgb(52, 63, 155)
HSLhsl(234, 50%, 41%)
HSVhsv(234, 66%, 61%)
CMYKcmyk(66.5%, 59.4%, 0%, 39.2%)
CIE-LABlab(31.00, 26.23, -51.67)
CIE-LCHlch(31.00, 57.95, 296.91°)
OKLaboklab(41.55% 0.0076 -0.1487)
OKLCHoklch(41.55% 0.149 272.9)
XYZxyz(9.1081, 6.6508, 31.8077)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343F9B #9B9034
analogous
#34729B #343F9B #5C349B
triadic
#343F9B #9B343F #3F9B34
tetradic
#343F9B #9B3472 #9B9034 #349B5C
square
#343F9B #9B3472 #9B9034 #349B5C
split-complementary
#343F9B #9B5C34 #729B34
monochromatic
#151A3F #252C6D #343F9B #4A57C2 #7881D2

Accessibility & contrast

On white

9.01
#343F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#343F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343F9B
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343F9B#FFFFFF#000000##FFFFFF
##343F9B1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9E
Deuteranopia (green-blind)
#004499
Tritanopia (blue-blind)
#005666
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #343f9b;
/* rgb */ color: rgb(52, 63, 155);
/* oklch */ color: oklch(41.5% 0.149 272.9);
Tailwind
colors: {
  custom: {
    50: '#7874b9',
    500: '#343f9b',
    950: '#000000',
  },
}
SCSS
$custom: #343f9b;
$custom-light: #7874b9;
$custom-dark: #000000;
JSON
{
  "hex": "#343f9b",
  "rgb": {
    "r": 52,
    "g": 63,
    "b": 155
  },
  "hsl": {
    "h": 233.592,
    "s": 49.758,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41547,
    "c": 0.14894,
    "h": 272.9
  },
  "luminance": 0.06652
}

Semantic roles & 50–950 ramp

primary
#343F9B
secondary
#BAB271
accent
#CA4FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #343F9B

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

Preview Lab → · Contrast checker → · Palette generator →

#343F9B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva