#2F5EB9#2F5EB9

#2F5EB9 is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.0% C 0.153 H 261.9°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#2F5EB9
RGBrgb(47, 94, 185)
HSLhsl(220, 59%, 45%)
HSVhsv(220, 75%, 73%)
CMYKcmyk(74.6%, 49.2%, 0%, 27.5%)
CIE-LABlab(41.39, 16.23, -52.73)
CIE-LCHlch(41.39, 55.17, 287.11°)
OKLaboklab(50.02% -0.0214 -0.1515)
OKLCHoklch(50.02% 0.153 261.9)
XYZxyz(13.9288, 12.1110, 47.4931)
Luminance0.1211 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5EB9 #B98A2F
analogous
#2FA3B9 #2F5EB9 #452FB9
triadic
#2F5EB9 #B92F5E #5EB92F
tetradic
#2F5EB9 #B92FA3 #B98A2F #2FB945
square
#2F5EB9 #B92FA3 #B98A2F #2FB945
split-complementary
#2F5EB9 #B9452F #A3B92F
monochromatic
#162C57 #234588 #2F5EB9 #527ED3 #83A2DF

Accessibility & contrast

On white

6.14
#2F5EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#2F5EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5EB9
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5EB9#FFFFFF#000000##FFFFFF
##2F5EB91.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A68BC
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#007482
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #2f5eb9;
/* rgb */ color: rgb(47, 94, 185);
/* oklch */ color: oklch(50.0% 0.153 261.9);
Tailwind
colors: {
  custom: {
    50: '#7a8bcf',
    500: '#2f5eb9',
    950: '#000000',
  },
}
SCSS
$custom: #2f5eb9;
$custom-light: #7a8bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5eb9",
  "rgb": {
    "r": 47,
    "g": 94,
    "b": 185
  },
  "hsl": {
    "h": 219.565,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50019,
    "c": 0.15298,
    "h": 261.9
  },
  "luminance": 0.12113
}

Semantic roles & 50–950 ramp

primary
#2F5EB9
secondary
#C9AE7B
accent
#AD45E3
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F5EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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