#2F49B4#2F49B4

#2F49B4 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.3% C 0.172 H 268.2°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#2F49B4
RGBrgb(47, 73, 180)
HSLhsl(228, 59%, 45%)
HSVhsv(228, 74%, 71%)
CMYKcmyk(73.9%, 59.4%, 0%, 29.4%)
CIE-LABlab(35.33, 28.12, -59.61)
CIE-LCHlch(35.33, 65.91, 295.25°)
OKLaboklab(45.32% -0.0054 -0.1721)
OKLCHoklch(45.32% 0.172 268.2)
XYZxyz(11.7902, 8.6635, 44.2220)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F49B4 #B49A2F
analogous
#2F8BB4 #2F49B4 #582FB4
triadic
#2F49B4 #B42F49 #49B42F
tetradic
#2F49B4 #B42F8B #B49A2F #2FB458
square
#2F49B4 #B42F8B #B49A2F #2FB458
split-complementary
#2F49B4 #B4582F #8BB42F
monochromatic
#162253 #223583 #2F49B4 #4F69D1 #8092DE

Accessibility & contrast

On white

7.68
#2F49B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2F49B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F49B4
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F49B4#FFFFFF#000000##FFFFFF
##2F49B41.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B8
Deuteranopia (green-blind)
#004DB2
Tritanopia (blue-blind)
#006477
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f49b4;
/* rgb */ color: rgb(47, 73, 180);
/* oklch */ color: oklch(45.3% 0.172 268.2);
Tailwind
colors: {
  custom: {
    50: '#7b7bcb',
    500: '#2f49b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f49b4;
$custom-light: #7b7bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f49b4",
  "rgb": {
    "r": 47,
    "g": 73,
    "b": 180
  },
  "hsl": {
    "h": 228.271,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45321,
    "c": 0.17215,
    "h": 268.2
  },
  "luminance": 0.08665
}

Semantic roles & 50–950 ramp

primary
#2F49B4
secondary
#C7B778
accent
#C346E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F49B4

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

Preview Lab → · Contrast checker → · Palette generator →

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