#2F5FAC#2F5FAC

#2F5FAC is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.3% C 0.134 H 259.5°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#2F5FAC
RGBrgb(47, 95, 172)
HSLhsl(217, 57%, 43%)
HSVhsv(217, 73%, 67%)
CMYKcmyk(72.7%, 44.8%, 0%, 32.5%)
CIE-LABlab(40.84, 10.67, -45.98)
CIE-LCHlch(40.84, 47.20, 283.06°)
OKLaboklab(49.33% -0.0244 -0.1316)
OKLCHoklch(49.33% 0.134 259.5)
XYZxyz(12.7082, 11.7659, 40.6230)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FAC #AC7C2F
analogous
#2F9DAC #2F5FAC #3D2FAC
triadic
#2F5FAC #AC2F5F #5FAC2F
tetradic
#2F5FAC #AC2F9D #AC7C2F #2FAC3D
square
#2F5FAC #AC2F9D #AC7C2F #2FAC3D
split-complementary
#2F5FAC #AC3D2F #9DAC2F
monochromatic
#152A4C #22447C #2F5FAC #4B7DCE #7BA0DB

Accessibility & contrast

On white

6.26
#2F5FAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#2F5FAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FAC
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FAC#FFFFFF#000000##FFFFFF
##2F5FAC1.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3966AF
Deuteranopia (green-blind)
#215BAA
Tritanopia (blue-blind)
#00717D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5fac;
/* rgb */ color: rgb(47, 95, 172);
/* oklch */ color: oklch(49.3% 0.134 259.5);
Tailwind
colors: {
  custom: {
    50: '#788bc5',
    500: '#2f5fac',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fac;
$custom-light: #788bc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fac",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 172
  },
  "hsl": {
    "h": 216.96,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.49328,
    "c": 0.13385,
    "h": 259.5
  },
  "luminance": 0.11767
}

Semantic roles & 50–950 ramp

primary
#2F5FAC
secondary
#C3A574
accent
#A647E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F5FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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