#2F48A4#2F48A4

#2F48A4 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.8% C 0.151 H 268.1°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#2F48A4
RGBrgb(47, 72, 164)
HSLhsl(227, 55%, 41%)
HSVhsv(227, 71%, 64%)
CMYKcmyk(71.3%, 56.1%, 0%, 35.7%)
CIE-LABlab(33.81, 22.81, -52.55)
CIE-LCHlch(33.81, 57.28, 293.46°)
OKLaboklab(43.79% -0.0051 -0.1513)
OKLCHoklch(43.79% 0.151 268.1)
XYZxyz(10.1882, 7.9184, 36.1062)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F48A4 #A48B2F
analogous
#2F83A4 #2F48A4 #512FA4
triadic
#2F48A4 #A42F48 #48A42F
tetradic
#2F48A4 #A42F83 #A48B2F #2FA451
square
#2F48A4 #A42F83 #A48B2F #2FA451
split-complementary
#2F48A4 #A4512F #83A42F
monochromatic
#141E45 #213374 #2F48A4 #4662CA #768BD8

Accessibility & contrast

On white

8.13
#2F48A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2F48A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F48A4
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F48A4#FFFFFF#000000##FFFFFF
##2F48A41.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055A7
Deuteranopia (green-blind)
#004AA2
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f48a4;
/* rgb */ color: rgb(47, 72, 164);
/* oklch */ color: oklch(43.8% 0.151 268.1);
Tailwind
colors: {
  custom: {
    50: '#777ac0',
    500: '#2f48a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f48a4;
$custom-light: #777ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f48a4",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 164
  },
  "hsl": {
    "h": 227.179,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.43794,
    "c": 0.15141,
    "h": 268.1
  },
  "luminance": 0.07919
}

Semantic roles & 50–950 ramp

primary
#2F48A4
secondary
#C0AE6F
accent
#BF49DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F48A4

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

Preview Lab → · Contrast checker → · Palette generator →

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