#334BBE#334BBE

#334BBE is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.8% C 0.182 H 269.0°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#334BBE
RGBrgb(51, 75, 190)
HSLhsl(230, 58%, 47%)
HSVhsv(230, 73%, 75%)
CMYKcmyk(73.2%, 60.5%, 0%, 25.5%)
CIE-LABlab(36.84, 30.99, -63.03)
CIE-LCHlch(36.84, 70.23, 296.18°)
OKLaboklab(46.75% -0.003 -0.182)
OKLCHoklch(46.75% 0.182 269)
XYZxyz(13.1724, 9.4523, 49.8355)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BBE #BEA633
analogous
#3391BE #334BBE #6033BE
triadic
#334BBE #BE334B #4BBE33
tetradic
#334BBE #BE3391 #BEA633 #33BE60
square
#334BBE #BE3391 #BEA633 #33BE60
split-complementary
#334BBE #BE6033 #91BE33
monochromatic
#19255E #26388E #334BBE #5B70D3 #8B9AE0

Accessibility & contrast

On white

7.26
#334BBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#334BBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334BBE
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BBE#FFFFFF#000000##FFFFFF
##334BBE1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC2
Deuteranopia (green-blind)
#0050BC
Tritanopia (blue-blind)
#00687D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #334bbe;
/* rgb */ color: rgb(51, 75, 190);
/* oklch */ color: oklch(46.8% 0.182 269.0);
Tailwind
colors: {
  custom: {
    50: '#7e7dd3',
    500: '#334bbe',
    950: '#000000',
  },
}
SCSS
$custom: #334bbe;
$custom-light: #7e7dd3;
$custom-dark: #000000;
JSON
{
  "hex": "#334bbe",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 190
  },
  "hsl": {
    "h": 229.64,
    "s": 57.676,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46751,
    "c": 0.18201,
    "h": 269
  },
  "luminance": 0.09454
}

Semantic roles & 50–950 ramp

primary
#334BBE
secondary
#CABE83
accent
#C647E1
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #334BBE

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

Preview Lab → · Contrast checker → · Palette generator →

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