#2F5FAF#2F5FAF

#2F5FAF is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.5% C 0.138 H 260.0°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#2F5FAF
RGBrgb(47, 95, 175)
HSLhsl(218, 58%, 44%)
HSVhsv(218, 73%, 69%)
CMYKcmyk(73.1%, 45.7%, 0%, 31.4%)
CIE-LABlab(41.03, 11.80, -47.44)
CIE-LCHlch(41.03, 48.89, 283.97°)
OKLaboklab(49.53% -0.0239 -0.1359)
OKLCHoklch(49.53% 0.138 260)
XYZxyz(12.9996, 11.8825, 42.1576)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5FAF #AF7F2F
analogous
#2F9FAF #2F5FAF #3F2FAF
triadic
#2F5FAF #AF2F5F #5FAF2F
tetradic
#2F5FAF #AF2F9F #AF7F2F #2FAF3F
square
#2F5FAF #AF2F9F #AF7F2F #2FAF3F
split-complementary
#2F5FAF #AF3F2F #9FAF2F
monochromatic
#152B4F #22457F #2F5FAF #4C7DCF #7CA0DC

Accessibility & contrast

On white

6.22
#2F5FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#2F5FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5FAF
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5FAF#FFFFFF#000000##FFFFFF
##2F5FAF1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3667B2
Deuteranopia (green-blind)
#1B5BAD
Tritanopia (blue-blind)
#00727E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5faf;
/* rgb */ color: rgb(47, 95, 175);
/* oklch */ color: oklch(49.5% 0.138 260.0);
Tailwind
colors: {
  custom: {
    50: '#788bc7',
    500: '#2f5faf',
    950: '#000000',
  },
}
SCSS
$custom: #2f5faf;
$custom-light: #788bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5faf",
  "rgb": {
    "r": 47,
    "g": 95,
    "b": 175
  },
  "hsl": {
    "h": 217.5,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49533,
    "c": 0.13799,
    "h": 260
  },
  "luminance": 0.11884
}

Semantic roles & 50–950 ramp

primary
#2F5FAF
secondary
#C4A775
accent
#A747E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F5FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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