#2F48A1#2F48A1

#2F48A1 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.6% C 0.147 H 267.9°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#2F48A1
RGBrgb(47, 72, 161)
HSLhsl(227, 55%, 41%)
HSVhsv(227, 71%, 63%)
CMYKcmyk(70.8%, 55.3%, 0%, 36.9%)
CIE-LABlab(33.59, 21.68, -51.11)
CIE-LCHlch(33.59, 55.52, 292.98°)
OKLaboklab(43.55% -0.0053 -0.1471)
OKLCHoklch(43.55% 0.147 267.9)
XYZxyz(9.9205, 7.8113, 34.6962)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F48A1 #A1882F
analogous
#2F81A1 #2F48A1 #4F2FA1
triadic
#2F48A1 #A12F48 #48A12F
tetradic
#2F48A1 #A12F81 #A1882F #2FA14F
square
#2F48A1 #A12F81 #A1882F #2FA14F
split-complementary
#2F48A1 #A14F2F #81A12F
monochromatic
#131E42 #213372 #2F48A1 #4562C9 #748AD6

Accessibility & contrast

On white

8.20
#2F48A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2F48A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F48A1
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F48A1#FFFFFF#000000##FFFFFF
##2F48A11.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A4
Deuteranopia (green-blind)
#004A9F
Tritanopia (blue-blind)
#005E6D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f48a1;
/* rgb */ color: rgb(47, 72, 161);
/* oklch */ color: oklch(43.6% 0.147 267.9);
Tailwind
colors: {
  custom: {
    50: '#767abd',
    500: '#2f48a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f48a1;
$custom-light: #767abd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f48a1",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 161
  },
  "hsl": {
    "h": 226.842,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43553,
    "c": 0.14719,
    "h": 267.9
  },
  "luminance": 0.07812
}

Semantic roles & 50–950 ramp

primary
#2F48A1
secondary
#BEAD6E
accent
#BE4ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F48A1

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

Preview Lab → · Contrast checker → · Palette generator →

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