#343FA2#343FA2

#343FA2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.1% C 0.159 H 272.7°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#343FA2
RGBrgb(52, 63, 162)
HSLhsl(234, 51%, 42%)
HSVhsv(234, 68%, 64%)
CMYKcmyk(67.9%, 61.1%, 0%, 36.5%)
CIE-LABlab(31.56, 28.76, -54.99)
CIE-LCHlch(31.56, 62.06, 297.61°)
OKLaboklab(42.14% 0.0075 -0.1585)
OKLCHoklch(42.14% 0.159 272.7)
XYZxyz(9.7131, 6.8928, 34.9940)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#343FA2 #A29734
analogous
#3476A2 #343FA2 #6034A2
triadic
#343FA2 #A2343F #3FA234
tetradic
#343FA2 #A23476 #A29734 #34A260
square
#343FA2 #A23476 #A29734 #34A260
split-complementary
#343FA2 #A26034 #76A234
monochromatic
#161B45 #252D74 #343FA2 #4D59C6 #7C85D5

Accessibility & contrast

On white

8.83
#343FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#343FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #343FA2
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##343FA2#FFFFFF#000000##FFFFFF
##343FA21.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#00586A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #343fa2;
/* rgb */ color: rgb(52, 63, 162);
/* oklch */ color: oklch(42.1% 0.159 272.7);
Tailwind
colors: {
  custom: {
    50: '#7974be',
    500: '#343fa2',
    950: '#000000',
  },
}
SCSS
$custom: #343fa2;
$custom-light: #7974be;
$custom-dark: #000000;
JSON
{
  "hex": "#343fa2",
  "rgb": {
    "r": 52,
    "g": 63,
    "b": 162
  },
  "hsl": {
    "h": 234,
    "s": 51.402,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42141,
    "c": 0.15868,
    "h": 272.7
  },
  "luminance": 0.06894
}

Semantic roles & 50–950 ramp

primary
#343FA2
secondary
#BEB674
accent
#CD4DDB
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #343FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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