#2F48B4#2F48B4

#2F48B4 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.1% C 0.173 H 268.5°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#2F48B4
RGBrgb(47, 72, 180)
HSLhsl(229, 59%, 45%)
HSVhsv(229, 74%, 71%)
CMYKcmyk(73.9%, 60%, 0%, 29.4%)
CIE-LABlab(35.07, 28.78, -60.04)
CIE-LCHlch(35.07, 66.58, 295.61°)
OKLaboklab(45.13% -0.0046 -0.1733)
OKLCHoklch(45.13% 0.173 268.5)
XYZxyz(11.7250, 8.5331, 44.2003)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F48B4 #B49B2F
analogous
#2F8BB4 #2F48B4 #592FB4
triadic
#2F48B4 #B42F48 #48B42F
tetradic
#2F48B4 #B42F8B #B49B2F #2FB459
square
#2F48B4 #B42F8B #B49B2F #2FB459
split-complementary
#2F48B4 #B4592F #8BB42F
monochromatic
#162153 #223583 #2F48B4 #4F68D1 #8091DE

Accessibility & contrast

On white

7.76
#2F48B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#2F48B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F48B4
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F48B4#FFFFFF#000000##FFFFFF
##2F48B41.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B8
Deuteranopia (green-blind)
#004CB2
Tritanopia (blue-blind)
#006377
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f48b4;
/* rgb */ color: rgb(47, 72, 180);
/* oklch */ color: oklch(45.1% 0.173 268.5);
Tailwind
colors: {
  custom: {
    50: '#7b7acb',
    500: '#2f48b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f48b4;
$custom-light: #7b7acb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f48b4",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 180
  },
  "hsl": {
    "h": 228.722,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.45129,
    "c": 0.17338,
    "h": 268.5
  },
  "luminance": 0.08534
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F48B4

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

Preview Lab → · Contrast checker → · Palette generator →

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