#3874D9#3874D9

#3874D9 is a mid, vivid blue. Relative luminance 0.183; OKLCH L 57.3% C 0.167 H 260.2°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#3874D9
RGBrgb(56, 116, 217)
HSLhsl(218, 68%, 54%)
HSVhsv(218, 74%, 85%)
CMYKcmyk(74.2%, 46.5%, 0%, 14.9%)
CIE-LABlab(49.90, 15.27, -57.41)
CIE-LCHlch(49.90, 59.40, 284.90°)
OKLaboklab(57.3% -0.0285 -0.1647)
OKLCHoklch(57.3% 0.167 260.2)
XYZxyz(20.3961, 18.3390, 68.0970)
Luminance0.1834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3874D9 #D99D38
analogous
#38C4D9 #3874D9 #4C38D9
triadic
#3874D9 #D93874 #74D938
tetradic
#3874D9 #D938C4 #D99D38 #38D94C
square
#3874D9 #D938C4 #D99D38 #38D94C
split-complementary
#3874D9 #D94C38 #C4D938
monochromatic
#183E7E #2258B2 #3874D9 #6B98E3 #9FBCED

Accessibility & contrast

On white

4.50
#3874D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#3874D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #3874D9
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3874D9#FFFFFF#000000##000000
##3874D91.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E7FDD
Deuteranopia (green-blind)
#1370D7
Tritanopia (blue-blind)
#008C9C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #3874d9;
/* rgb */ color: rgb(56, 116, 217);
/* oklch */ color: oklch(57.3% 0.167 260.2);
Tailwind
colors: {
  custom: {
    50: '#849be5',
    500: '#3874d9',
    950: '#000000',
  },
}
SCSS
$custom: #3874d9;
$custom-light: #849be5;
$custom-dark: #000000;
JSON
{
  "hex": "#3874d9",
  "rgb": {
    "r": 56,
    "g": 116,
    "b": 217
  },
  "hsl": {
    "h": 217.64,
    "s": 67.932,
    "l": 53.529
  },
  "oklch": {
    "l": 0.57301,
    "c": 0.16716,
    "h": 260.2
  },
  "luminance": 0.18341
}

Semantic roles & 50–950 ramp

primary
#3874D9
secondary
#D9BF94
accent
#AA3DEB
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0C0E16
muted
#7D7E84

Preview Lab

Preview with #3874D9

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

Preview Lab → · Contrast checker → · Palette generator →

#3874D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva