#2F5BD3#2F5BD3

#2F5BD3 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.4% C 0.192 H 265.0°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#2F5BD3
RGBrgb(47, 91, 211)
HSLhsl(224, 65%, 51%)
HSVhsv(224, 78%, 83%)
CMYKcmyk(77.7%, 56.9%, 0%, 17.3%)
CIE-LABlab(42.44, 27.96, -66.08)
CIE-LCHlch(42.44, 71.75, 292.93°)
OKLaboklab(51.4% -0.0168 -0.1908)
OKLCHoklch(51.4% 0.192 265)
XYZxyz(16.6671, 12.7877, 63.2052)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5BD3 #D3A72F
analogous
#2FADD3 #2F5BD3 #552FD3
triadic
#2F5BD3 #D32F5B #5BD32F
tetradic
#2F5BD3 #D32FAD #D3A72F #2FD355
square
#2F5BD3 #D32FAD #D3A72F #2FD355
split-complementary
#2F5BD3 #D3552F #ADD32F
monochromatic
#182F70 #2245A2 #2F5BD3 #6283DE #94ABE8

Accessibility & contrast

On white

5.90
#2F5BD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#2F5BD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5BD3
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5BD3#FFFFFF#000000##FFFFFF
##2F5BD31.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD7
Deuteranopia (green-blind)
#005DD1
Tritanopia (blue-blind)
#00798E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2f5bd3;
/* rgb */ color: rgb(47, 91, 211);
/* oklch */ color: oklch(51.4% 0.192 265.0);
Tailwind
colors: {
  custom: {
    50: '#8088e1',
    500: '#2f5bd3',
    950: '#000000',
  },
}
SCSS
$custom: #2f5bd3;
$custom-light: #8088e1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5bd3",
  "rgb": {
    "r": 47,
    "g": 91,
    "b": 211
  },
  "hsl": {
    "h": 223.902,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.51404,
    "c": 0.19153,
    "h": 265
  },
  "luminance": 0.1279
}

Semantic roles & 50–950 ramp

primary
#2F5BD3
secondary
#D3C08A
accent
#BB40E8
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #2F5BD3

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

Preview Lab → · Contrast checker → · Palette generator →

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