#2F48B3#2F48B3

#2F48B3 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.0% C 0.172 H 268.4°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#2F48B3
RGBrgb(47, 72, 179)
HSLhsl(229, 58%, 44%)
HSVhsv(229, 74%, 70%)
CMYKcmyk(73.7%, 59.8%, 0%, 29.8%)
CIE-LABlab(34.99, 28.40, -59.58)
CIE-LCHlch(34.99, 66.00, 295.49°)
OKLaboklab(45.04% -0.0047 -0.172)
OKLCHoklch(45.04% 0.172 268.4)
XYZxyz(11.6235, 8.4925, 43.6657)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F48B3 #B39A2F
analogous
#2F8AB3 #2F48B3 #582FB3
triadic
#2F48B3 #B32F48 #48B32F
tetradic
#2F48B3 #B32F8A #B39A2F #2FB358
square
#2F48B3 #B32F8A #B39A2F #2FB358
split-complementary
#2F48B3 #B3582F #8AB32F
monochromatic
#162152 #223583 #2F48B3 #4F67D1 #7F91DD

Accessibility & contrast

On white

7.78
#2F48B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2F48B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F48B3
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F48B3#FFFFFF#000000##FFFFFF
##2F48B31.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B7
Deuteranopia (green-blind)
#004CB1
Tritanopia (blue-blind)
#006376
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f48b3;
/* rgb */ color: rgb(47, 72, 179);
/* oklch */ color: oklch(45.0% 0.172 268.4);
Tailwind
colors: {
  custom: {
    50: '#7a7acb',
    500: '#2f48b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f48b3;
$custom-light: #7a7acb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f48b3",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 179
  },
  "hsl": {
    "h": 228.636,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45043,
    "c": 0.17204,
    "h": 268.4
  },
  "luminance": 0.08494
}

Semantic roles & 50–950 ramp

primary
#2F48B3
secondary
#C6B778
accent
#C446E2
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F48B3

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

Preview Lab → · Contrast checker → · Palette generator →

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