#2F48B1#2F48B1

#2F48B1 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.9% C 0.169 H 268.4°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#2F48B1
RGBrgb(47, 72, 177)
HSLhsl(228, 58%, 44%)
HSVhsv(228, 73%, 69%)
CMYKcmyk(73.4%, 59.3%, 0%, 30.6%)
CIE-LABlab(34.83, 27.66, -58.65)
CIE-LCHlch(34.83, 64.85, 295.25°)
OKLaboklab(44.87% -0.0047 -0.1693)
OKLCHoklch(44.87% 0.169 268.4)
XYZxyz(11.4227, 8.4122, 42.6082)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F48B1 #B1982F
analogous
#2F89B1 #2F48B1 #572FB1
triadic
#2F48B1 #B12F48 #48B12F
tetradic
#2F48B1 #B12F89 #B1982F #2FB157
square
#2F48B1 #B12F89 #B1982F #2FB157
split-complementary
#2F48B1 #B1572F #89B12F
monochromatic
#152150 #223481 #2F48B1 #4D66D0 #7E90DD

Accessibility & contrast

On white

7.83
#2F48B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2F48B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F48B1
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F48B1#FFFFFF#000000##FFFFFF
##2F48B11.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B5
Deuteranopia (green-blind)
#004CAF
Tritanopia (blue-blind)
#006275
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f48b1;
/* rgb */ color: rgb(47, 72, 177);
/* oklch */ color: oklch(44.9% 0.169 268.4);
Tailwind
colors: {
  custom: {
    50: '#7a7ac9',
    500: '#2f48b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f48b1;
$custom-light: #7a7ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f48b1",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 177
  },
  "hsl": {
    "h": 228.462,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44872,
    "c": 0.16933,
    "h": 268.4
  },
  "luminance": 0.08413
}

Semantic roles & 50–950 ramp

primary
#2F48B1
secondary
#C5B676
accent
#C447E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F48B1

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

Preview Lab → · Contrast checker → · Palette generator →

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