#334ACA#334ACA

#334ACA is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.6% C 0.199 H 269.2°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#334ACA
RGBrgb(51, 74, 202)
HSLhsl(231, 60%, 50%)
HSVhsv(231, 75%, 79%)
CMYKcmyk(74.8%, 63.4%, 0%, 20.8%)
CIE-LABlab(37.60, 35.96, -68.79)
CIE-LCHlch(37.60, 77.62, 297.60°)
OKLaboklab(47.62% -0.0026 -0.1989)
OKLCHoklch(47.62% 0.199 269.2)
XYZxyz(14.4710, 9.8641, 57.0070)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#334ACA #CAB333
analogous
#3396CA #334ACA #6833CA
triadic
#334ACA #CA334A #4ACA33
tetradic
#334ACA #CA3396 #CAB333 #33CA68
square
#334ACA #CA3396 #CAB333 #33CA68
split-complementary
#334ACA #CA6833 #96CA33
monochromatic
#1A2668 #273899 #334ACA #6374D8 #94A0E4

Accessibility & contrast

On white

7.06
#334ACA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#334ACA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #334ACA
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##334ACA#FFFFFF#000000##FFFFFF
##334ACA1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #334aca;
/* rgb */ color: rgb(51, 74, 202);
/* oklch */ color: oklch(47.6% 0.199 269.2);
Tailwind
colors: {
  custom: {
    50: '#817cdb',
    500: '#334aca',
    950: '#000000',
  },
}
SCSS
$custom: #334aca;
$custom-light: #817cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#334aca",
  "rgb": {
    "r": 51,
    "g": 74,
    "b": 202
  },
  "hsl": {
    "h": 230.861,
    "s": 59.684,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4762,
    "c": 0.1989,
    "h": 269.2
  },
  "luminance": 0.09866
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #334ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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