#2F5BC3#2F5BC3

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

Color values

HEX#2F5BC3
RGBrgb(47, 91, 195)
HSLhsl(222, 61%, 47%)
HSVhsv(222, 76%, 76%)
CMYKcmyk(75.9%, 53.3%, 0%, 23.5%)
CIE-LABlab(41.26, 21.96, -58.77)
CIE-LCHlch(41.26, 62.74, 290.49°)
OKLaboklab(50.14% -0.0179 -0.1693)
OKLCHoklch(50.14% 0.17 264)
XYZxyz(14.7602, 12.0250, 53.1623)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BC3 #C3972F
analogous
#2FA5C3 #2F5BC3 #4D2FC3
triadic
#2F5BC3 #C32F5B #5BC32F
tetradic
#2F5BC3 #C32FA5 #C3972F #2FC34D
square
#2F5BC3 #C32FA5 #C3972F #2FC34D
split-complementary
#2F5BC3 #C34D2F #A5C32F
monochromatic
#172D60 #234492 #2F5BC3 #587ED7 #8AA4E3

Accessibility & contrast

On white

6.17
#2F5BC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#2F5BC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5BC3
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BC3#FFFFFF#000000##FFFFFF
##2F5BC31.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0968C7
Deuteranopia (green-blind)
#005BC1
Tritanopia (blue-blind)
#007486
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5bc3;
/* rgb */ color: rgb(47, 91, 195);
/* oklch */ color: oklch(50.1% 0.170 264.0);
Tailwind
colors: {
  custom: {
    50: '#7d88d6',
    500: '#2f5bc3',
    950: '#000000',
  },
}
SCSS
$custom: #2f5bc3;
$custom-light: #7d88d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5bc3",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 195
  },
  "hsl": {
    "h": 222.162,
    "s": 61.157,
    "l": 47.451
  },
  "oklch": {
    "l": 0.50136,
    "c": 0.17025,
    "h": 264
  },
  "luminance": 0.12027
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5BC3

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

Preview Lab → · Contrast checker → · Palette generator →

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