#2F48A8#2F48A8

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

Color values

HEX#2F48A8
RGBrgb(47, 72, 168)
HSLhsl(228, 56%, 42%)
HSVhsv(228, 72%, 66%)
CMYKcmyk(72%, 57.1%, 0%, 34.1%)
CIE-LABlab(34.12, 24.31, -54.45)
CIE-LCHlch(34.12, 59.63, 294.06°)
OKLaboklab(44.12% -0.0049 -0.1569)
OKLCHoklch(44.12% 0.157 268.2)
XYZxyz(10.5551, 8.0651, 38.0387)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F48A8 #A88F2F
analogous
#2F85A8 #2F48A8 #522FA8
triadic
#2F48A8 #A82F48 #48A82F
tetradic
#2F48A8 #A82F85 #A88F2F #2FA852
square
#2F48A8 #A82F85 #A88F2F #2FA852
split-complementary
#2F48A8 #A8522F #85A82F
monochromatic
#141F48 #223478 #2F48A8 #4863CC #788CD9

Accessibility & contrast

On white

8.04
#2F48A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F48A8
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F48A8#FFFFFF#000000##FFFFFF
##2F48A81.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f48a8;
/* rgb */ color: rgb(47, 72, 168);
/* oklch */ color: oklch(44.1% 0.157 268.2);
Tailwind
colors: {
  custom: {
    50: '#787ac3',
    500: '#2f48a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f48a8;
$custom-light: #787ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f48a8",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 168
  },
  "hsl": {
    "h": 227.603,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4412,
    "c": 0.15699,
    "h": 268.2
  },
  "luminance": 0.08066
}

Semantic roles & 50–950 ramp

primary
#2F48A8
secondary
#C1B171
accent
#C048E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F48A8

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

Preview Lab → · Contrast checker → · Palette generator →

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