#334EAF#334EAF

#334EAF is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.1% C 0.158 H 267.9°. Best body text is #FFFFFF at 7.37:1 contrast (WCAG AA passes).

Color values

HEX#334EAF
RGBrgb(51, 78, 175)
HSLhsl(227, 55%, 44%)
HSVhsv(227, 71%, 69%)
CMYKcmyk(70.9%, 55.4%, 0%, 31.4%)
CIE-LABlab(36.45, 23.51, -54.81)
CIE-LCHlch(36.45, 59.64, 293.21°)
OKLaboklab(46.1% -0.0057 -0.1578)
OKLCHoklch(46.1% 0.158 267.9)
XYZxyz(11.8248, 9.2465, 41.7107)
Luminance0.0925 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334EAF #AF9433
analogous
#338CAF #334EAF #5633AF
triadic
#334EAF #AF334E #4EAF33
tetradic
#334EAF #AF338C #AF9433 #33AF56
square
#334EAF #AF338C #AF9433 #33AF56
split-complementary
#334EAF #AF5633 #8CAF33
monochromatic
#172450 #253980 #334EAF #526DCD #8295DB

Accessibility & contrast

On white

7.37
#334EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#334EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334EAF
7.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334EAF#FFFFFF#000000##FFFFFF
##334EAF1.007.372.857.37
#FFFFFF7.371.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB2
Deuteranopia (green-blind)
#0050AD
Tritanopia (blue-blind)
#006677
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #334eaf;
/* rgb */ color: rgb(51, 78, 175);
/* oklch */ color: oklch(46.1% 0.158 267.9);
Tailwind
colors: {
  custom: {
    50: '#7b7fc8',
    500: '#334eaf',
    950: '#000000',
  },
}
SCSS
$custom: #334eaf;
$custom-light: #7b7fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#334eaf",
  "rgb": {
    "r": 51,
    "g": 78,
    "b": 175
  },
  "hsl": {
    "h": 226.935,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46096,
    "c": 0.15791,
    "h": 267.9
  },
  "luminance": 0.09248
}

Semantic roles & 50–950 ramp

primary
#334EAF
secondary
#C4B47A
accent
#BE4ADE
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #334EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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