#334BCA#334BCA

#334BCA is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.8% C 0.198 H 269.1°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#334BCA
RGBrgb(51, 75, 202)
HSLhsl(230, 60%, 50%)
HSVhsv(230, 75%, 79%)
CMYKcmyk(74.8%, 62.9%, 0%, 20.8%)
CIE-LABlab(37.84, 35.33, -68.39)
CIE-LCHlch(37.84, 76.98, 297.32°)
OKLaboklab(47.8% -0.0032 -0.1977)
OKLCHoklch(47.8% 0.198 269.1)
XYZxyz(14.5383, 9.9987, 57.0294)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334BCA #CAB233
analogous
#3396CA #334BCA #6733CA
triadic
#334BCA #CA334B #4BCA33
tetradic
#334BCA #CA3396 #CAB233 #33CA67
square
#334BCA #CA3396 #CAB233 #33CA67
split-complementary
#334BCA #CA6733 #96CA33
monochromatic
#1A2768 #273999 #334BCA #6375D8 #94A0E4

Accessibility & contrast

On white

7.00
#334BCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#334BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #334BCA
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334BCA#FFFFFF#000000##FFFFFF
##334BCA1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#0052C8
Tritanopia (blue-blind)
#006C83
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #334bca;
/* rgb */ color: rgb(51, 75, 202);
/* oklch */ color: oklch(47.8% 0.198 269.1);
Tailwind
colors: {
  custom: {
    50: '#817ddb',
    500: '#334bca',
    950: '#000000',
  },
}
SCSS
$custom: #334bca;
$custom-light: #817ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#334bca",
  "rgb": {
    "r": 51,
    "g": 75,
    "b": 202
  },
  "hsl": {
    "h": 230.464,
    "s": 59.684,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47799,
    "c": 0.19773,
    "h": 269.1
  },
  "luminance": 0.1
}

Semantic roles & 50–950 ramp

primary
#334BCA
secondary
#CFC48A
accent
#CA45E3
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #334BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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