#314DC2#314DC2

#314DC2 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.4% C 0.185 H 268.1°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#314DC2
RGBrgb(49, 77, 194)
HSLhsl(228, 60%, 48%)
HSVhsv(228, 75%, 76%)
CMYKcmyk(74.7%, 60.3%, 0%, 23.9%)
CIE-LABlab(37.58, 30.92, -64.16)
CIE-LCHlch(37.58, 71.23, 295.73°)
OKLaboklab(47.38% -0.0062 -0.1853)
OKLCHoklch(47.38% 0.185 268.1)
XYZxyz(13.6547, 9.8543, 52.2109)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314DC2 #C2A631
analogous
#3195C2 #314DC2 #5E31C2
triadic
#314DC2 #C2314D #4DC231
tetradic
#314DC2 #C23195 #C2A631 #31C25E
square
#314DC2 #C23195 #C2A631 #31C25E
split-complementary
#314DC2 #C25E31 #95C231
monochromatic
#182660 #253A91 #314DC2 #5B72D6 #8C9CE2

Accessibility & contrast

On white

7.07
#314DC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#314DC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314DC2
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314DC2#FFFFFF#000000##FFFFFF
##314DC21.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#0052C0
Tritanopia (blue-blind)
#006B80
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #314dc2;
/* rgb */ color: rgb(49, 77, 194);
/* oklch */ color: oklch(47.4% 0.185 268.1);
Tailwind
colors: {
  custom: {
    50: '#7e7ed5',
    500: '#314dc2',
    950: '#000000',
  },
}
SCSS
$custom: #314dc2;
$custom-light: #7e7ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#314dc2",
  "rgb": {
    "r": 49,
    "g": 77,
    "b": 194
  },
  "hsl": {
    "h": 228.414,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.47375,
    "c": 0.18544,
    "h": 268.1
  },
  "luminance": 0.09856
}

Semantic roles & 50–950 ramp

primary
#314DC2
secondary
#CCBE83
accent
#C445E3
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #314DC2

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

Preview Lab → · Contrast checker → · Palette generator →

#314DC2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva