#2F48B7#2F48B7

#2F48B7 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.4% C 0.177 H 268.5°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#2F48B7
RGBrgb(47, 72, 183)
HSLhsl(229, 59%, 45%)
HSVhsv(229, 74%, 72%)
CMYKcmyk(74.3%, 60.7%, 0%, 28.2%)
CIE-LABlab(35.31, 29.88, -61.41)
CIE-LCHlch(35.31, 68.29, 295.95°)
OKLaboklab(45.39% -0.0046 -0.1773)
OKLCHoklch(45.39% 0.177 268.5)
XYZxyz(12.0339, 8.6567, 45.8273)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F48B7 #B79E2F
analogous
#2F8CB7 #2F48B7 #5A2FB7
triadic
#2F48B7 #B72F48 #48B72F
tetradic
#2F48B7 #B72F8C #B79E2F #2FB75A
square
#2F48B7 #B72F8C #B79E2F #2FB75A
split-complementary
#2F48B7 #B75A2F #8CB72F
monochromatic
#162256 #223586 #2F48B7 #5169D2 #8293DF

Accessibility & contrast

On white

7.69
#2F48B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F48B7
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F48B7#FFFFFF#000000##FFFFFF
##2F48B71.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABB
Deuteranopia (green-blind)
#004DB5
Tritanopia (blue-blind)
#006478
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f48b7;
/* rgb */ color: rgb(47, 72, 183);
/* oklch */ color: oklch(45.4% 0.177 268.5);
Tailwind
colors: {
  custom: {
    50: '#7b7acd',
    500: '#2f48b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f48b7;
$custom-light: #7b7acd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f48b7",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 183
  },
  "hsl": {
    "h": 228.971,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.45387,
    "c": 0.17741,
    "h": 268.5
  },
  "luminance": 0.08658
}

Semantic roles & 50–950 ramp

primary
#2F48B7
secondary
#C8BA7A
accent
#C545E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F48B7

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

Preview Lab → · Contrast checker → · Palette generator →

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