#2F48A7#2F48A7

#2F48A7 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.0% C 0.156 H 268.2°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#2F48A7
RGBrgb(47, 72, 167)
HSLhsl(228, 56%, 42%)
HSVhsv(228, 72%, 65%)
CMYKcmyk(71.9%, 56.9%, 0%, 34.5%)
CIE-LABlab(34.04, 23.93, -53.98)
CIE-LCHlch(34.04, 59.04, 293.91°)
OKLaboklab(44.04% -0.005 -0.1555)
OKLCHoklch(44.04% 0.156 268.2)
XYZxyz(10.4623, 8.0280, 37.5499)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F48A7 #A78E2F
analogous
#2F84A7 #2F48A7 #522FA7
triadic
#2F48A7 #A72F48 #48A72F
tetradic
#2F48A7 #A72F84 #A78E2F #2FA752
square
#2F48A7 #A72F84 #A78E2F #2FA752
split-complementary
#2F48A7 #A7522F #84A72F
monochromatic
#141F47 #223377 #2F48A7 #4863CB #788CD9

Accessibility & contrast

On white

8.06
#2F48A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2F48A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F48A7
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F48A7#FFFFFF#000000##FFFFFF
##2F48A71.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AA
Deuteranopia (green-blind)
#004BA5
Tritanopia (blue-blind)
#005F70
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f48a7;
/* rgb */ color: rgb(47, 72, 167);
/* oklch */ color: oklch(44.0% 0.156 268.2);
Tailwind
colors: {
  custom: {
    50: '#787ac2',
    500: '#2f48a7',
    950: '#000000',
  },
}
SCSS
$custom: #2f48a7;
$custom-light: #787ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f48a7",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 167
  },
  "hsl": {
    "h": 227.5,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44038,
    "c": 0.1556,
    "h": 268.2
  },
  "luminance": 0.08029
}

Semantic roles & 50–950 ramp

primary
#2F48A7
secondary
#C1B071
accent
#C048DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F48A7

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

Preview Lab → · Contrast checker → · Palette generator →

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