#2F5EA9#2F5EA9

#2F5EA9 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 48.9% C 0.131 H 259.4°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#2F5EA9
RGBrgb(47, 94, 169)
HSLhsl(217, 56%, 42%)
HSVhsv(217, 72%, 66%)
CMYKcmyk(72.2%, 44.4%, 0%, 33.7%)
CIE-LABlab(40.37, 10.18, -44.97)
CIE-LCHlch(40.37, 46.10, 282.76°)
OKLaboklab(48.9% -0.0241 -0.1286)
OKLCHoklch(48.9% 0.131 259.4)
XYZxyz(12.3338, 11.4730, 39.0929)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EA9 #A97A2F
analogous
#2F9BA9 #2F5EA9 #3D2FA9
triadic
#2F5EA9 #A92F5E #5EA92F
tetradic
#2F5EA9 #A92F9B #A97A2F #2FA93D
square
#2F5EA9 #A92F9B #A97A2F #2FA93D
split-complementary
#2F5EA9 #A93D2F #9BA92F
monochromatic
#142949 #224379 #2F5EA9 #497CCC #799EDA

Accessibility & contrast

On white

6.37
#2F5EA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2F5EA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EA9
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EA9#FFFFFF#000000##FFFFFF
##2F5EA91.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3965AC
Deuteranopia (green-blind)
#225AA7
Tritanopia (blue-blind)
#00707B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2f5ea9;
/* rgb */ color: rgb(47, 94, 169);
/* oklch */ color: oklch(48.9% 0.131 259.4);
Tailwind
colors: {
  custom: {
    50: '#778bc3',
    500: '#2f5ea9',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ea9;
$custom-light: #778bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ea9",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 169
  },
  "hsl": {
    "h": 216.885,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.48901,
    "c": 0.13088,
    "h": 259.4
  },
  "luminance": 0.11474
}

Semantic roles & 50–950 ramp

primary
#2F5EA9
secondary
#C2A372
accent
#A548E0
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0B12
muted
#7C7C81

Preview Lab

Preview with #2F5EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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