#2F5BC2#2F5BC2

#2F5BC2 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.1% C 0.169 H 263.9°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#2F5BC2
RGBrgb(47, 91, 194)
HSLhsl(222, 61%, 47%)
HSVhsv(222, 76%, 76%)
CMYKcmyk(75.8%, 53.1%, 0%, 23.9%)
CIE-LABlab(41.18, 21.58, -58.31)
CIE-LCHlch(41.18, 62.17, 290.31°)
OKLaboklab(50.06% -0.018 -0.1679)
OKLCHoklch(50.06% 0.169 263.9)
XYZxyz(14.6475, 11.9799, 52.5689)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BC2 #C2962F
analogous
#2FA4C2 #2F5BC2 #4D2FC2
triadic
#2F5BC2 #C22F5B #5BC22F
tetradic
#2F5BC2 #C22FA4 #C2962F #2FC24D
square
#2F5BC2 #C22FA4 #C2962F #2FC24D
split-complementary
#2F5BC2 #C24D2F #A4C22F
monochromatic
#172D5F #234491 #2F5BC2 #587ED6 #89A4E2

Accessibility & contrast

On white

6.18
#2F5BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#2F5BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5BC2
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BC2#FFFFFF#000000##FFFFFF
##2F5BC21.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D68C6
Deuteranopia (green-blind)
#005BC0
Tritanopia (blue-blind)
#007485
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5bc2;
/* rgb */ color: rgb(47, 91, 194);
/* oklch */ color: oklch(50.1% 0.169 263.9);
Tailwind
colors: {
  custom: {
    50: '#7d88d5',
    500: '#2f5bc2',
    950: '#000000',
  },
}
SCSS
$custom: #2f5bc2;
$custom-light: #7d88d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5bc2",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 194
  },
  "hsl": {
    "h": 222.041,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50059,
    "c": 0.1689,
    "h": 263.9
  },
  "luminance": 0.11982
}

Semantic roles & 50–950 ramp

primary
#2F5BC2
secondary
#CCB681
accent
#B444E4
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F5BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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