#2F5EB3#2F5EB3

#2F5EB3 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.6% C 0.145 H 261.1°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#2F5EB3
RGBrgb(47, 94, 179)
HSLhsl(219, 58%, 44%)
HSVhsv(219, 74%, 70%)
CMYKcmyk(73.7%, 47.5%, 0%, 29.8%)
CIE-LABlab(41.00, 13.96, -49.85)
CIE-LCHlch(41.00, 51.76, 285.65°)
OKLaboklab(49.59% -0.0223 -0.143)
OKLCHoklch(49.59% 0.145 261.1)
XYZxyz(13.3088, 11.8630, 44.2275)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EB3 #B3842F
analogous
#2FA0B3 #2F5EB3 #422FB3
triadic
#2F5EB3 #B32F5E #5EB32F
tetradic
#2F5EB3 #B32FA0 #B3842F #2FB342
square
#2F5EB3 #B32FA0 #B3842F #2FB342
split-complementary
#2F5EB3 #B3422F #A0B32F
monochromatic
#162B52 #224583 #2F5EB3 #4F7DD1 #7FA1DD

Accessibility & contrast

On white

6.23
#2F5EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#2F5EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EB3
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EB3#FFFFFF#000000##FFFFFF
##2F5EB31.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3067B6
Deuteranopia (green-blind)
#0D5BB1
Tritanopia (blue-blind)
#007280
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5eb3;
/* rgb */ color: rgb(47, 94, 179);
/* oklch */ color: oklch(49.6% 0.145 261.1);
Tailwind
colors: {
  custom: {
    50: '#798bca',
    500: '#2f5eb3',
    950: '#000000',
  },
}
SCSS
$custom: #2f5eb3;
$custom-light: #798bca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5eb3",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 179
  },
  "hsl": {
    "h": 218.636,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49591,
    "c": 0.14473,
    "h": 261.1
  },
  "luminance": 0.11864
}

Semantic roles & 50–950 ramp

primary
#2F5EB3
secondary
#C6AA78
accent
#AA46E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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