#2F48AA#2F48AA

#2F48AA is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.3% C 0.160 H 268.3°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#2F48AA
RGBrgb(47, 72, 170)
HSLhsl(228, 57%, 43%)
HSVhsv(228, 72%, 67%)
CMYKcmyk(72.4%, 57.6%, 0%, 33.3%)
CIE-LABlab(34.27, 25.05, -55.39)
CIE-LCHlch(34.27, 60.79, 294.34°)
OKLaboklab(44.29% -0.0049 -0.1597)
OKLCHoklch(44.29% 0.16 268.3)
XYZxyz(10.7428, 8.1402, 39.0275)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F48AA #AA912F
analogous
#2F85AA #2F48AA #542FAA
triadic
#2F48AA #AA2F48 #48AA2F
tetradic
#2F48AA #AA2F85 #AA912F #2FAA54
square
#2F48AA #AA2F85 #AA912F #2FAA54
split-complementary
#2F48AA #AA542F #85AA2F
monochromatic
#141F4A #22347A #2F48AA #4964CD #798DDA

Accessibility & contrast

On white

7.99
#2F48AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2F48AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F48AA
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F48AA#FFFFFF#000000##FFFFFF
##2F48AA1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056AD
Deuteranopia (green-blind)
#004BA8
Tritanopia (blue-blind)
#006072
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f48aa;
/* rgb */ color: rgb(47, 72, 170);
/* oklch */ color: oklch(44.3% 0.160 268.3);
Tailwind
colors: {
  custom: {
    50: '#787ac4',
    500: '#2f48aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f48aa;
$custom-light: #787ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f48aa",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 170
  },
  "hsl": {
    "h": 227.805,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44285,
    "c": 0.15975,
    "h": 268.3
  },
  "luminance": 0.08141
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F48AA

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

Preview Lab → · Contrast checker → · Palette generator →

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