#2F5EA2#2F5EA2

#2F5EA2 is a mid, vivid blue. Relative luminance 0.112; OKLCH L 48.4% C 0.121 H 257.8°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#2F5EA2
RGBrgb(47, 94, 162)
HSLhsl(215, 55%, 41%)
HSVhsv(215, 71%, 64%)
CMYKcmyk(71%, 42%, 0%, 36.5%)
CIE-LABlab(39.94, 7.55, -41.49)
CIE-LCHlch(39.94, 42.17, 280.31°)
OKLaboklab(48.44% -0.0255 -0.1184)
OKLCHoklch(48.44% 0.121 257.8)
XYZxyz(11.6942, 11.2171, 35.7242)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EA2 #A2732F
analogous
#2F97A2 #2F5EA2 #392FA2
triadic
#2F5EA2 #A22F5E #5EA22F
tetradic
#2F5EA2 #A22F97 #A2732F #2FA239
square
#2F5EA2 #A22F97 #A2732F #2FA239
split-complementary
#2F5EA2 #A2392F #97A22F
monochromatic
#132743 #214273 #2F5EA2 #457BC9 #759DD7

Accessibility & contrast

On white

6.47
#2F5EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#2F5EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EA2
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EA2#FFFFFF#000000##FFFFFF
##2F5EA21.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f5ea2;
/* rgb */ color: rgb(47, 94, 162);
/* oklch */ color: oklch(48.4% 0.121 257.8);
Tailwind
colors: {
  custom: {
    50: '#768bbe',
    500: '#2f5ea2',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ea2;
$custom-light: #768bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ea2",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 215.478,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.48438,
    "c": 0.12114,
    "h": 257.8
  },
  "luminance": 0.11218
}

Semantic roles & 50–950 ramp

primary
#2F5EA2
secondary
#BF9E6E
accent
#A149DE
background
#F7F8FB
surface
#EEF0F7
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F5EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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