#334BAF#334BAF

#334BAF is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.5% C 0.162 H 268.8°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#334BAF
RGBrgb(51, 75, 175)
HSLhsl(228, 55%, 44%)
HSVhsv(228, 71%, 69%)
CMYKcmyk(70.9%, 57.1%, 0%, 31.4%)
CIE-LABlab(35.65, 25.48, -56.11)
CIE-LCHlch(35.65, 61.63, 294.42°)
OKLaboklab(45.5% -0.0033 -0.1617)
OKLCHoklch(45.5% 0.162 268.8)
XYZxyz(11.6165, 8.8299, 41.6413)
Luminance0.0883 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BAF #AF9733
analogous
#3389AF #334BAF #5933AF
triadic
#334BAF #AF334B #4BAF33
tetradic
#334BAF #AF3389 #AF9733 #33AF59
square
#334BAF #AF3389 #AF9733 #33AF59
split-complementary
#334BAF #AF5933 #89AF33
monochromatic
#172250 #253780 #334BAF #526ACD #8293DB

Accessibility & contrast

On white

7.59
#334BAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#334BAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BAF
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BAF#FFFFFF#000000##FFFFFF
##334BAF1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB2
Deuteranopia (green-blind)
#004EAD
Tritanopia (blue-blind)
#006475
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #334baf;
/* rgb */ color: rgb(51, 75, 175);
/* oklch */ color: oklch(45.5% 0.162 268.8);
Tailwind
colors: {
  custom: {
    50: '#7b7dc8',
    500: '#334baf',
    950: '#000000',
  },
}
SCSS
$custom: #334baf;
$custom-light: #7b7dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#334baf",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 175
  },
  "hsl": {
    "h": 228.387,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45495,
    "c": 0.1617,
    "h": 268.8
  },
  "luminance": 0.08831
}

Semantic roles & 50–950 ramp

primary
#334BAF
secondary
#C4B67A
accent
#C14ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #334BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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