#2F48B2#2F48B2

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

Color values

HEX#2F48B2
RGBrgb(47, 72, 178)
HSLhsl(229, 58%, 44%)
HSVhsv(229, 74%, 70%)
CMYKcmyk(73.6%, 59.6%, 0%, 30.2%)
CIE-LABlab(34.91, 28.03, -59.12)
CIE-LCHlch(34.91, 65.43, 295.37°)
OKLaboklab(44.96% -0.0047 -0.1706)
OKLCHoklch(44.96% 0.171 268.4)
XYZxyz(11.5228, 8.4522, 43.1350)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F48B2 #B2992F
analogous
#2F8AB2 #2F48B2 #582FB2
triadic
#2F48B2 #B22F48 #48B22F
tetradic
#2F48B2 #B22F8A #B2992F #2FB258
square
#2F48B2 #B22F8A #B2992F #2FB258
split-complementary
#2F48B2 #B2582F #8AB22F
monochromatic
#152151 #223482 #2F48B2 #4E67D0 #7E90DD

Accessibility & contrast

On white

7.80
#2F48B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2F48B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F48B2
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F48B2#FFFFFF#000000##FFFFFF
##2F48B21.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#006376
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f48b2;
/* rgb */ color: rgb(47, 72, 178);
/* oklch */ color: oklch(45.0% 0.171 268.4);
Tailwind
colors: {
  custom: {
    50: '#7a7aca',
    500: '#2f48b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f48b2;
$custom-light: #7a7aca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f48b2",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 178
  },
  "hsl": {
    "h": 228.55,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44957,
    "c": 0.17068,
    "h": 268.4
  },
  "luminance": 0.08453
}

Semantic roles & 50–950 ramp

primary
#2F48B2
secondary
#C6B777
accent
#C446E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F48B2

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

Preview Lab → · Contrast checker → · Palette generator →

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