#2F5DC1#2F5DC1

#2F5DC1 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 50.4% C 0.165 H 263.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#2F5DC1
RGBrgb(47, 93, 193)
HSLhsl(221, 61%, 47%)
HSVhsv(221, 76%, 76%)
CMYKcmyk(75.6%, 51.8%, 0%, 24.3%)
CIE-LABlab(41.66, 19.91, -56.95)
CIE-LCHlch(41.66, 60.33, 289.27°)
OKLaboklab(50.4% -0.0196 -0.1639)
OKLCHoklch(50.4% 0.165 263.2)
XYZxyz(14.7088, 12.2816, 52.0371)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5DC1 #C1932F
analogous
#2FA6C1 #2F5DC1 #4A2FC1
triadic
#2F5DC1 #C12F5D #5DC12F
tetradic
#2F5DC1 #C12FA6 #C1932F #2FC14A
square
#2F5DC1 #C12FA6 #C1932F #2FC14A
split-complementary
#2F5DC1 #C14A2F #A6C12F
monochromatic
#172E5F #234590 #2F5DC1 #577FD6 #88A5E2

Accessibility & contrast

On white

6.08
#2F5DC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#2F5DC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5DC1
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5DC1#FFFFFF#000000##FFFFFF
##2F5DC11.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A69C5
Deuteranopia (green-blind)
#005CBF
Tritanopia (blue-blind)
#007586
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f5dc1;
/* rgb */ color: rgb(47, 93, 193);
/* oklch */ color: oklch(50.4% 0.165 263.2);
Tailwind
colors: {
  custom: {
    50: '#7c8ad4',
    500: '#2f5dc1',
    950: '#000000',
  },
}
SCSS
$custom: #2f5dc1;
$custom-light: #7c8ad4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5dc1",
  "rgb": {
    "r": 47,
    "g": 93,
    "b": 193
  },
  "hsl": {
    "h": 221.096,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.50398,
    "c": 0.1651,
    "h": 263.2
  },
  "luminance": 0.12283
}

Semantic roles & 50–950 ramp

primary
#2F5DC1
secondary
#CCB480
accent
#B244E4
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F5DC1

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

Preview Lab → · Contrast checker → · Palette generator →

#2F5DC1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva