#2F5FA9#2F5FA9

#2F5FA9 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.1% C 0.130 H 258.9°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#2F5FA9
RGBrgb(47, 95, 169)
HSLhsl(216, 56%, 42%)
HSVhsv(216, 72%, 66%)
CMYKcmyk(72.2%, 43.8%, 0%, 33.7%)
CIE-LABlab(40.66, 9.53, -44.50)
CIE-LCHlch(40.66, 45.51, 282.09°)
OKLaboklab(49.13% -0.025 -0.1272)
OKLCHoklch(49.13% 0.13 258.9)
XYZxyz(12.4233, 11.6520, 39.1227)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FA9 #A9792F
analogous
#2F9CA9 #2F5FA9 #3C2FA9
triadic
#2F5FA9 #A92F5F #5FA92F
tetradic
#2F5FA9 #A92F9C #A9792F #2FA93C
square
#2F5FA9 #A92F9C #A9792F #2FA93C
split-complementary
#2F5FA9 #A93C2F #9CA92F
monochromatic
#142949 #224479 #2F5FA9 #497DCC #799FDA

Accessibility & contrast

On white

6.31
#2F5FA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#2F5FA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FA9
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FA9#FFFFFF#000000##FFFFFF
##2F5FA91.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B66AC
Deuteranopia (green-blind)
#255BA7
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5fa9;
/* rgb */ color: rgb(47, 95, 169);
/* oklch */ color: oklch(49.1% 0.130 258.9);
Tailwind
colors: {
  custom: {
    50: '#778bc3',
    500: '#2f5fa9',
    950: '#000000',
  },
}
SCSS
$custom: #2f5fa9;
$custom-light: #778bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5fa9",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 169
  },
  "hsl": {
    "h": 216.393,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.49126,
    "c": 0.12969,
    "h": 258.9
  },
  "luminance": 0.11653
}

Semantic roles & 50–950 ramp

primary
#2F5FA9
secondary
#C2A272
accent
#A448E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C12
muted
#7C7D81

Preview Lab

Preview with #2F5FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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