#2F48A9#2F48A9

#2F48A9 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.2% C 0.158 H 268.2°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#2F48A9
RGBrgb(47, 72, 169)
HSLhsl(228, 56%, 42%)
HSVhsv(228, 72%, 66%)
CMYKcmyk(72.2%, 57.4%, 0%, 33.7%)
CIE-LABlab(34.20, 24.68, -54.92)
CIE-LCHlch(34.20, 60.21, 294.20°)
OKLaboklab(44.2% -0.0049 -0.1583)
OKLCHoklch(44.2% 0.158 268.2)
XYZxyz(10.6486, 8.1025, 38.5312)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F48A9 #A9902F
analogous
#2F85A9 #2F48A9 #532FA9
triadic
#2F48A9 #A92F48 #48A92F
tetradic
#2F48A9 #A92F85 #A9902F #2FA953
square
#2F48A9 #A92F85 #A9902F #2FA953
split-complementary
#2F48A9 #A9532F #85A92F
monochromatic
#141F49 #223479 #2F48A9 #4964CC #798DDA

Accessibility & contrast

On white

8.01
#2F48A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2F48A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F48A9
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F48A9#FFFFFF#000000##FFFFFF
##2F48A91.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AC
Deuteranopia (green-blind)
#004BA7
Tritanopia (blue-blind)
#006071
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f48a9;
/* rgb */ color: rgb(47, 72, 169);
/* oklch */ color: oklch(44.2% 0.158 268.2);
Tailwind
colors: {
  custom: {
    50: '#787ac3',
    500: '#2f48a9',
    950: '#000000',
  },
}
SCSS
$custom: #2f48a9;
$custom-light: #787ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f48a9",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 169
  },
  "hsl": {
    "h": 227.705,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.44203,
    "c": 0.15837,
    "h": 268.2
  },
  "luminance": 0.08104
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F48A9

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

Preview Lab → · Contrast checker → · Palette generator →

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