#2F5299#2F5299

#2F5299 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.1% C 0.123 H 262.7°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#2F5299
RGBrgb(47, 82, 153)
HSLhsl(220, 53%, 39%)
HSVhsv(220, 69%, 60%)
CMYKcmyk(69.3%, 46.4%, 0%, 40%)
CIE-LABlab(35.86, 12.00, -42.62)
CIE-LCHlch(35.86, 44.28, 285.72°)
OKLaboklab(45.11% -0.0155 -0.1219)
OKLCHoklch(45.11% 0.123 262.7)
XYZxyz(9.9373, 8.9378, 31.3323)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5299 #99762F
analogous
#2F8799 #2F5299 #412F99
triadic
#2F5299 #992F52 #52992F
tetradic
#2F5299 #992F87 #99762F #2F9941
square
#2F5299 #992F87 #99762F #2F9941
split-complementary
#2F5299 #99412F #87992F
monochromatic
#12203B #21396A #2F5299 #416CC5 #6F90D3

Accessibility & contrast

On white

7.53
#2F5299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2F5299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5299
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5299#FFFFFF#000000##FFFFFF
##2F52991.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5A9C
Deuteranopia (green-blind)
#1A5098
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f5299;
/* rgb */ color: rgb(47, 82, 153);
/* oklch */ color: oklch(45.1% 0.123 262.7);
Tailwind
colors: {
  custom: {
    50: '#7482b7',
    500: '#2f5299',
    950: '#000000',
  },
}
SCSS
$custom: #2f5299;
$custom-light: #7482b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5299",
  "rgb": {
    "r": 47,
    "g": 82,
    "b": 153
  },
  "hsl": {
    "h": 220.189,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4511,
    "c": 0.12294,
    "h": 262.7
  },
  "luminance": 0.08939
}

Semantic roles & 50–950 ramp

primary
#2F5299
secondary
#BAA069
accent
#AD4BDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F5299

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

Preview Lab → · Contrast checker → · Palette generator →

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