#2F5EB5#2F5EB5

#2F5EB5 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.7% C 0.147 H 261.4°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#2F5EB5
RGBrgb(47, 94, 181)
HSLhsl(219, 59%, 45%)
HSVhsv(219, 74%, 71%)
CMYKcmyk(74%, 48.1%, 0%, 29%)
CIE-LABlab(41.13, 14.72, -50.81)
CIE-LCHlch(41.13, 52.90, 286.15°)
OKLaboklab(49.73% -0.022 -0.1458)
OKLCHoklch(49.73% 0.147 261.4)
XYZxyz(13.5125, 11.9445, 45.3005)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EB5 #B5862F
analogous
#2FA1B5 #2F5EB5 #432FB5
triadic
#2F5EB5 #B52F5E #5EB52F
tetradic
#2F5EB5 #B52FA1 #B5862F #2FB543
square
#2F5EB5 #B52FA1 #B5862F #2FB543
split-complementary
#2F5EB5 #B5432F #A1B52F
monochromatic
#162C54 #224584 #2F5EB5 #507DD1 #80A1DE

Accessibility & contrast

On white

6.20
#2F5EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#2F5EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EB5
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EB5#FFFFFF#000000##FFFFFF
##2F5EB51.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E68B8
Deuteranopia (green-blind)
#055BB3
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2f5eb5;
/* rgb */ color: rgb(47, 94, 181);
/* oklch */ color: oklch(49.7% 0.147 261.4);
Tailwind
colors: {
  custom: {
    50: '#7a8bcc',
    500: '#2f5eb5',
    950: '#000000',
  },
}
SCSS
$custom: #2f5eb5;
$custom-light: #7a8bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5eb5",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 181
  },
  "hsl": {
    "h": 218.955,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49732,
    "c": 0.14748,
    "h": 261.4
  },
  "luminance": 0.11946
}

Semantic roles & 50–950 ramp

primary
#2F5EB5
secondary
#C7AC79
accent
#AB46E2
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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