#2F5EA1#2F5EA1

#2F5EA1 is a mid, moderate blue. Relative luminance 0.112; OKLCH L 48.4% C 0.120 H 257.6°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#2F5EA1
RGBrgb(47, 94, 161)
HSLhsl(215, 55%, 41%)
HSVhsv(215, 71%, 63%)
CMYKcmyk(70.8%, 41.6%, 0%, 36.9%)
CIE-LABlab(39.88, 7.17, -40.99)
CIE-LCHlch(39.88, 41.61, 279.93°)
OKLaboklab(48.37% -0.0257 -0.1169)
OKLCHoklch(48.37% 0.12 257.6)
XYZxyz(11.6057, 11.1817, 35.2580)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EA1 #A1722F
analogous
#2F97A1 #2F5EA1 #392FA1
triadic
#2F5EA1 #A12F5E #5EA12F
tetradic
#2F5EA1 #A12F97 #A1722F #2FA139
square
#2F5EA1 #A12F97 #A1722F #2FA139
split-complementary
#2F5EA1 #A1392F #97A12F
monochromatic
#132742 #214272 #2F5EA1 #457BC9 #749DD6

Accessibility & contrast

On white

6.49
#2F5EA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F5EA1
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EA1#FFFFFF#000000##FFFFFF
##2F5EA11.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F64A4
Deuteranopia (green-blind)
#2C59A0
Tritanopia (blue-blind)
#006E77
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #2f5ea1;
/* rgb */ color: rgb(47, 94, 161);
/* oklch */ color: oklch(48.4% 0.120 257.6);
Tailwind
colors: {
  custom: {
    50: '#758bbd',
    500: '#2f5ea1',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ea1;
$custom-light: #758bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ea1",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 161
  },
  "hsl": {
    "h": 215.263,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48373,
    "c": 0.11975,
    "h": 257.6
  },
  "luminance": 0.11183
}

Semantic roles & 50–950 ramp

primary
#2F5EA1
secondary
#BE9D6E
accent
#A14ADE
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2F5EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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