#2F488A#2F488A

#2F488A is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.8% C 0.114 H 266.0°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#2F488A
RGBrgb(47, 72, 138)
HSLhsl(224, 49%, 36%)
HSVhsv(224, 66%, 54%)
CMYKcmyk(65.9%, 47.8%, 0%, 45.9%)
CIE-LABlab(31.97, 13.03, -39.72)
CIE-LCHlch(31.97, 41.80, 288.16°)
OKLaboklab(41.81% -0.0079 -0.1136)
OKLCHoklch(41.81% 0.114 266)
XYZxyz(8.0755, 7.0733, 24.9795)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F488A #8A712F
analogous
#2F768A #2F488A #442F8A
triadic
#2F488A #8A2F48 #488A2F
tetradic
#2F488A #8A2F76 #8A712F #2F8A44
square
#2F488A #8A2F76 #8A712F #2F8A44
split-complementary
#2F488A #8A442F #768A2F
monochromatic
#10182F #1F305C #2F488A #3F60B8 #6883CC

Accessibility & contrast

On white

8.70
#2F488A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2F488A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F488A
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F488A#FFFFFF#000000##FFFFFF
##2F488A1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27508C
Deuteranopia (green-blind)
#164789
Tritanopia (blue-blind)
#005762
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f488a;
/* rgb */ color: rgb(47, 72, 138);
/* oklch */ color: oklch(41.8% 0.114 266.0);
Tailwind
colors: {
  custom: {
    50: '#717aac',
    500: '#2f488a',
    950: '#000000',
  },
}
SCSS
$custom: #2f488a;
$custom-light: #717aac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f488a",
  "rgb": {
    "r": 47,
    "g": 72,
    "b": 138
  },
  "hsl": {
    "h": 223.516,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.41814,
    "c": 0.11385,
    "h": 266
  },
  "luminance": 0.07074
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F488A

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

Preview Lab → · Contrast checker → · Palette generator →

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