#2F5EA3#2F5EA3

#2F5EA3 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 48.5% C 0.123 H 258.1°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#2F5EA3
RGBrgb(47, 94, 163)
HSLhsl(216, 55%, 41%)
HSVhsv(216, 71%, 64%)
CMYKcmyk(71.2%, 42.3%, 0%, 36.1%)
CIE-LABlab(40.00, 7.92, -41.99)
CIE-LCHlch(40.00, 42.73, 280.69°)
OKLaboklab(48.5% -0.0253 -0.1199)
OKLCHoklch(48.5% 0.123 258.1)
XYZxyz(11.7835, 11.2528, 36.1942)
Luminance0.1125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EA3 #A3742F
analogous
#2F98A3 #2F5EA3 #3A2FA3
triadic
#2F5EA3 #A32F5E #5EA32F
tetradic
#2F5EA3 #A32F98 #A3742F #2FA33A
square
#2F5EA3 #A32F98 #A3742F #2FA33A
split-complementary
#2F5EA3 #A33A2F #98A32F
monochromatic
#142744 #214373 #2F5EA3 #467BCA #759DD7

Accessibility & contrast

On white

6.46
#2F5EA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#2F5EA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EA3
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EA3#FFFFFF#000000##FFFFFF
##2F5EA31.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D64A6
Deuteranopia (green-blind)
#2A59A2
Tritanopia (blue-blind)
#006E78
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f5ea3;
/* rgb */ color: rgb(47, 94, 163);
/* oklch */ color: oklch(48.5% 0.123 258.1);
Tailwind
colors: {
  custom: {
    50: '#768bbf',
    500: '#2f5ea3',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ea3;
$custom-light: #768bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ea3",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 163
  },
  "hsl": {
    "h": 215.69,
    "s": 55.238,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48503,
    "c": 0.12253,
    "h": 258.1
  },
  "luminance": 0.11254
}

Semantic roles & 50–950 ramp

primary
#2F5EA3
secondary
#BF9F6F
accent
#A249DF
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F5EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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