#334ABF#334ABF

#334ABF is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.7% C 0.185 H 269.3°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#334ABF
RGBrgb(51, 74, 191)
HSLhsl(230, 58%, 47%)
HSVhsv(230, 73%, 75%)
CMYKcmyk(73.3%, 61.3%, 0%, 25.1%)
CIE-LABlab(36.67, 31.99, -63.89)
CIE-LCHlch(36.67, 71.45, 296.60°)
OKLaboklab(46.65% -0.0023 -0.1845)
OKLCHoklch(46.65% 0.185 269.3)
XYZxyz(13.2148, 9.3616, 50.3906)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334ABF #BFA833
analogous
#3390BF #334ABF #6233BF
triadic
#334ABF #BF334A #4ABF33
tetradic
#334ABF #BF3390 #BFA833 #33BF62
square
#334ABF #BF3390 #BFA833 #33BF62
split-complementary
#334ABF #BF6233 #90BF33
monochromatic
#19255E #26378F #334ABF #5C6FD3 #8C9AE0

Accessibility & contrast

On white

7.31
#334ABF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#334ABF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334ABF
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334ABF#FFFFFF#000000##FFFFFF
##334ABF1.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#0050BD
Tritanopia (blue-blind)
#00687D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #334abf;
/* rgb */ color: rgb(51, 74, 191);
/* oklch */ color: oklch(46.7% 0.185 269.3);
Tailwind
colors: {
  custom: {
    50: '#7e7cd3',
    500: '#334abf',
    950: '#000000',
  },
}
SCSS
$custom: #334abf;
$custom-light: #7e7cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#334abf",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 191
  },
  "hsl": {
    "h": 230.143,
    "s": 57.851,
    "l": 47.451
  },
  "oklch": {
    "l": 0.4665,
    "c": 0.18453,
    "h": 269.3
  },
  "luminance": 0.09363
}

Semantic roles & 50–950 ramp

primary
#334ABF
secondary
#CBBF83
accent
#C847E1
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #334ABF

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

Preview Lab → · Contrast checker → · Palette generator →

#334ABF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva