#2F488C#2F488C

#2F488C is a dark, moderate blue. Relative luminance 0.071; OKLCH L 42.0% C 0.117 H 266.3°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#2F488C
RGBrgb(47, 72, 140)
HSLhsl(224, 50%, 37%)
HSVhsv(224, 66%, 55%)
CMYKcmyk(66.4%, 48.6%, 0%, 45.1%)
CIE-LABlab(32.11, 13.78, -40.74)
CIE-LCHlch(32.11, 43.01, 288.69°)
OKLaboklab(41.96% -0.0076 -0.1166)
OKLCHoklch(41.96% 0.117 266.3)
XYZxyz(8.2216, 7.1318, 25.7491)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F488C #8C732F
analogous
#2F778C #2F488C #452F8C
triadic
#2F488C #8C2F48 #488C2F
tetradic
#2F488C #8C2F77 #8C732F #2F8C45
square
#2F488C #8C2F77 #8C732F #2F8C45
split-complementary
#2F488C #8C452F #778C2F
monochromatic
#101930 #20305E #2F488C #3E60BA #6984CD

Accessibility & contrast

On white

8.65
#2F488C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2F488C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F488C
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F488C#FFFFFF#000000##FFFFFF
##2F488C1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#25508F
Deuteranopia (green-blind)
#13488B
Tritanopia (blue-blind)
#005863
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f488c;
/* rgb */ color: rgb(47, 72, 140);
/* oklch */ color: oklch(42.0% 0.117 266.3);
Tailwind
colors: {
  custom: {
    50: '#727aae',
    500: '#2f488c',
    950: '#000000',
  },
}
SCSS
$custom: #2f488c;
$custom-light: #727aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f488c",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 140
  },
  "hsl": {
    "h": 223.871,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.41957,
    "c": 0.11683,
    "h": 266.3
  },
  "luminance": 0.07133
}

Semantic roles & 50–950 ramp

primary
#2F488C
secondary
#B49E63
accent
#B44FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #2F488C

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

Preview Lab → · Contrast checker → · Palette generator →

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