#2F48AB#2F48AB

#2F48AB is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.4% C 0.161 H 268.3°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#2F48AB
RGBrgb(47, 72, 171)
HSLhsl(228, 57%, 43%)
HSVhsv(228, 73%, 67%)
CMYKcmyk(72.5%, 57.9%, 0%, 32.9%)
CIE-LABlab(34.35, 25.43, -55.86)
CIE-LCHlch(34.35, 61.38, 294.47°)
OKLaboklab(44.37% -0.0048 -0.1611)
OKLCHoklch(44.37% 0.161 268.3)
XYZxyz(10.8378, 8.1782, 39.5276)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F48AB #AB922F
analogous
#2F86AB #2F48AB #542FAB
triadic
#2F48AB #AB2F48 #48AB2F
tetradic
#2F48AB #AB2F86 #AB922F #2FAB54
square
#2F48AB #AB2F86 #AB922F #2FAB54
split-complementary
#2F48AB #AB542F #86AB2F
monochromatic
#15204B #22347B #2F48AB #4A64CD #7A8DDA

Accessibility & contrast

On white

7.97
#2F48AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2F48AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F48AB
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F48AB#FFFFFF#000000##FFFFFF
##2F48AB1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AE
Deuteranopia (green-blind)
#004BA9
Tritanopia (blue-blind)
#006072
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f48ab;
/* rgb */ color: rgb(47, 72, 171);
/* oklch */ color: oklch(44.4% 0.161 268.3);
Tailwind
colors: {
  custom: {
    50: '#797ac5',
    500: '#2f48ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f48ab;
$custom-light: #797ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f48ab",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 171
  },
  "hsl": {
    "h": 227.903,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.44368,
    "c": 0.16113,
    "h": 268.3
  },
  "luminance": 0.08179
}

Semantic roles & 50–950 ramp

primary
#2F48AB
secondary
#C3B373
accent
#C148E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F48AB

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

Preview Lab → · Contrast checker → · Palette generator →

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