#334CA0#334CA0

#334CA0 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.5% C 0.139 H 267.9°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#334CA0
RGBrgb(51, 76, 160)
HSLhsl(226, 52%, 41%)
HSVhsv(226, 68%, 63%)
CMYKcmyk(68.1%, 52.5%, 0%, 37.3%)
CIE-LABlab(34.82, 19.26, -48.50)
CIE-LCHlch(34.82, 52.19, 291.66°)
OKLaboklab(44.52% -0.0051 -0.1393)
OKLCHoklch(44.52% 0.139 267.9)
XYZxyz(10.2927, 8.4098, 34.3317)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334CA0 #A08733
analogous
#3383A0 #334CA0 #5133A0
triadic
#334CA0 #A0334C #4CA033
tetradic
#334CA0 #A03383 #A08733 #33A051
square
#334CA0 #A03383 #A08733 #33A051
split-complementary
#334CA0 #A05133 #83A033
monochromatic
#152043 #243672 #334CA0 #4B67C6 #798ED4

Accessibility & contrast

On white

7.83
#334CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#334CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334CA0
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334CA0#FFFFFF#000000##FFFFFF
##334CA01.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1857A3
Deuteranopia (green-blind)
#004D9E
Tritanopia (blue-blind)
#00606E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #334ca0;
/* rgb */ color: rgb(51, 76, 160);
/* oklch */ color: oklch(44.5% 0.139 267.9);
Tailwind
colors: {
  custom: {
    50: '#787dbd',
    500: '#334ca0',
    950: '#000000',
  },
}
SCSS
$custom: #334ca0;
$custom-light: #787dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#334ca0",
  "rgb": {
    "r": 51,
    "g": 76,
    "b": 160
  },
  "hsl": {
    "h": 226.239,
    "s": 51.659,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44519,
    "c": 0.13937,
    "h": 267.9
  },
  "luminance": 0.08411
}

Semantic roles & 50–950 ramp

primary
#334CA0
secondary
#BDAC72
accent
#BA4DDB
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #334CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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