#2F48B6#2F48B6

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

Color values

HEX#2F48B6
RGBrgb(47, 72, 182)
HSLhsl(229, 59%, 45%)
HSVhsv(229, 74%, 71%)
CMYKcmyk(74.2%, 60.4%, 0%, 28.6%)
CIE-LABlab(35.23, 29.52, -60.95)
CIE-LCHlch(35.23, 67.72, 295.84°)
OKLaboklab(45.3% -0.0046 -0.176)
OKLCHoklch(45.3% 0.176 268.5)
XYZxyz(11.9302, 8.6152, 45.2810)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F48B6 #B69D2F
analogous
#2F8BB6 #2F48B6 #5A2FB6
triadic
#2F48B6 #B62F48 #48B62F
tetradic
#2F48B6 #B62F8B #B69D2F #2FB65A
square
#2F48B6 #B62F8B #B69D2F #2FB65A
split-complementary
#2F48B6 #B65A2F #8BB62F
monochromatic
#162255 #223585 #2F48B6 #5068D2 #8192DE

Accessibility & contrast

On white

7.71
#2F48B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F48B6
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F48B6#FFFFFF#000000##FFFFFF
##2F48B61.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BA
Deuteranopia (green-blind)
#004DB4
Tritanopia (blue-blind)
#006478
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f48b6;
/* rgb */ color: rgb(47, 72, 182);
/* oklch */ color: oklch(45.3% 0.176 268.5);
Tailwind
colors: {
  custom: {
    50: '#7b7acd',
    500: '#2f48b6',
    950: '#000000',
  },
}
SCSS
$custom: #2f48b6;
$custom-light: #7b7acd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f48b6",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 182
  },
  "hsl": {
    "h": 228.889,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45301,
    "c": 0.17607,
    "h": 268.5
  },
  "luminance": 0.08616
}

Semantic roles & 50–950 ramp

primary
#2F48B6
secondary
#C7B979
accent
#C546E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F48B6

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

Preview Lab → · Contrast checker → · Palette generator →

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