#2F48B5#2F48B5

#2F48B5 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.2% C 0.175 H 268.5°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#2F48B5
RGBrgb(47, 72, 181)
HSLhsl(229, 59%, 45%)
HSVhsv(229, 74%, 71%)
CMYKcmyk(74%, 60.2%, 0%, 29%)
CIE-LABlab(35.15, 29.15, -60.50)
CIE-LCHlch(35.15, 67.15, 295.72°)
OKLaboklab(45.22% -0.0046 -0.1747)
OKLCHoklch(45.22% 0.175 268.5)
XYZxyz(11.8273, 8.5740, 44.7387)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F48B5 #B59C2F
analogous
#2F8BB5 #2F48B5 #592FB5
triadic
#2F48B5 #B52F48 #48B52F
tetradic
#2F48B5 #B52F8B #B59C2F #2FB559
square
#2F48B5 #B52F8B #B59C2F #2FB559
split-complementary
#2F48B5 #B5592F #8BB52F
monochromatic
#162154 #223584 #2F48B5 #5068D1 #8092DE

Accessibility & contrast

On white

7.73
#2F48B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2F48B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F48B5
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F48B5#FFFFFF#000000##FFFFFF
##2F48B51.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f48b5;
/* rgb */ color: rgb(47, 72, 181);
/* oklch */ color: oklch(45.2% 0.175 268.5);
Tailwind
colors: {
  custom: {
    50: '#7b7acc',
    500: '#2f48b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f48b5;
$custom-light: #7b7acc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f48b5",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 181
  },
  "hsl": {
    "h": 228.806,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.45215,
    "c": 0.17473,
    "h": 268.5
  },
  "luminance": 0.08575
}

Semantic roles & 50–950 ramp

primary
#2F48B5
secondary
#C7B879
accent
#C546E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F48B5

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

Preview Lab → · Contrast checker → · Palette generator →

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