#2F5EB2#2F5EB2

#2F5EB2 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.5% C 0.143 H 261.0°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#2F5EB2
RGBrgb(47, 94, 178)
HSLhsl(218, 58%, 44%)
HSVhsv(218, 74%, 70%)
CMYKcmyk(73.6%, 47.2%, 0%, 30.2%)
CIE-LABlab(40.93, 13.58, -49.36)
CIE-LCHlch(40.93, 51.20, 285.38°)
OKLaboklab(49.52% -0.0225 -0.1416)
OKLCHoklch(49.52% 0.143 261)
XYZxyz(13.2080, 11.8227, 43.6968)
Luminance0.1182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EB2 #B2832F
analogous
#2FA0B2 #2F5EB2 #422FB2
triadic
#2F5EB2 #B22F5E #5EB22F
tetradic
#2F5EB2 #B22FA0 #B2832F #2FB242
square
#2F5EB2 #B22FA0 #B2832F #2FB242
split-complementary
#2F5EB2 #B2422F #A0B22F
monochromatic
#152B51 #224482 #2F5EB2 #4E7DD0 #7EA0DD

Accessibility & contrast

On white

6.24
#2F5EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#2F5EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EB2
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EB2#FFFFFF#000000##FFFFFF
##2F5EB21.006.243.366.24
#FFFFFF6.241.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3167B5
Deuteranopia (green-blind)
#105BB0
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5eb2;
/* rgb */ color: rgb(47, 94, 178);
/* oklch */ color: oklch(49.5% 0.143 261.0);
Tailwind
colors: {
  custom: {
    50: '#798bc9',
    500: '#2f5eb2',
    950: '#000000',
  },
}
SCSS
$custom: #2f5eb2;
$custom-light: #798bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5eb2",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 178
  },
  "hsl": {
    "h": 218.473,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.4952,
    "c": 0.14335,
    "h": 261
  },
  "luminance": 0.11824
}

Semantic roles & 50–950 ramp

primary
#2F5EB2
secondary
#C6AA77
accent
#AA46E1
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F5EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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