#2F488B#2F488B

#2F488B is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.9% C 0.115 H 266.2°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#2F488B
RGBrgb(47, 72, 139)
HSLhsl(224, 49%, 36%)
HSVhsv(224, 66%, 55%)
CMYKcmyk(66.2%, 48.2%, 0%, 45.5%)
CIE-LABlab(32.04, 13.40, -40.23)
CIE-LCHlch(32.04, 42.41, 288.43°)
OKLaboklab(41.89% -0.0077 -0.1151)
OKLCHoklch(41.89% 0.115 266.2)
XYZxyz(8.1482, 7.1024, 25.3626)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F488B #8B722F
analogous
#2F768B #2F488B #442F8B
triadic
#2F488B #8B2F48 #488B2F
tetradic
#2F488B #8B2F76 #8B722F #2F8B44
square
#2F488B #8B2F76 #8B722F #2F8B44
split-complementary
#2F488B #8B442F #768B2F
monochromatic
#101930 #20305D #2F488B #3E60B9 #6883CC

Accessibility & contrast

On white

8.68
#2F488B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2F488B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F488B
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F488B#FFFFFF#000000##FFFFFF
##2F488B1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26508D
Deuteranopia (green-blind)
#15478A
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f488b;
/* rgb */ color: rgb(47, 72, 139);
/* oklch */ color: oklch(41.9% 0.115 266.2);
Tailwind
colors: {
  custom: {
    50: '#727aad',
    500: '#2f488b',
    950: '#000000',
  },
}
SCSS
$custom: #2f488b;
$custom-light: #727aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f488b",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 139
  },
  "hsl": {
    "h": 223.696,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.41885,
    "c": 0.11534,
    "h": 266.2
  },
  "luminance": 0.07103
}

Semantic roles & 50–950 ramp

primary
#2F488B
secondary
#B39D63
accent
#B34FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F488B

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

Preview Lab → · Contrast checker → · Palette generator →

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