#2F5FA3#2F5FA3

#2F5FA3 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 48.7% C 0.121 H 257.5°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#2F5FA3
RGBrgb(47, 95, 163)
HSLhsl(215, 55%, 41%)
HSVhsv(215, 71%, 64%)
CMYKcmyk(71.2%, 41.7%, 0%, 36.1%)
CIE-LABlab(40.30, 7.28, -41.52)
CIE-LCHlch(40.30, 42.15, 279.94°)
OKLaboklab(48.73% -0.0263 -0.1185)
OKLCHoklch(48.73% 0.121 257.5)
XYZxyz(11.8730, 11.4318, 36.2241)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FA3 #A3732F
analogous
#2F99A3 #2F5FA3 #392FA3
triadic
#2F5FA3 #A32F5F #5FA32F
tetradic
#2F5FA3 #A32F99 #A3732F #2FA339
square
#2F5FA3 #A32F99 #A3732F #2FA339
split-complementary
#2F5FA3 #A3392F #99A32F
monochromatic
#142844 #214373 #2F5FA3 #467CCA #759ED7

Accessibility & contrast

On white

6.39
#2F5FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2F5FA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FA3
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FA3#FFFFFF#000000##FFFFFF
##2F5FA31.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F65A6
Deuteranopia (green-blind)
#2C5AA2
Tritanopia (blue-blind)
#006F79
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5fa3;
/* rgb */ color: rgb(47, 95, 163);
/* oklch */ color: oklch(48.7% 0.121 257.5);
Tailwind
colors: {
  custom: {
    50: '#768bbf',
    500: '#2f5fa3',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fa3;
$custom-light: #768bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fa3",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 163
  },
  "hsl": {
    "h": 215.172,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48732,
    "c": 0.12137,
    "h": 257.5
  },
  "luminance": 0.11433
}

Semantic roles & 50–950 ramp

primary
#2F5FA3
secondary
#BF9E6F
accent
#A149DF
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090C12
muted
#7B7D81

Preview Lab

Preview with #2F5FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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