#2F498D#2F498D

#2F498D is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.3% C 0.117 H 265.9°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#2F498D
RGBrgb(47, 73, 141)
HSLhsl(223, 50%, 37%)
HSVhsv(223, 67%, 55%)
CMYKcmyk(66.7%, 48.2%, 0%, 44.7%)
CIE-LABlab(32.46, 13.48, -40.78)
CIE-LCHlch(32.46, 42.95, 288.29°)
OKLaboklab(42.25% -0.0084 -0.1167)
OKLCHoklch(42.25% 0.117 265.9)
XYZxyz(8.3609, 7.2917, 26.1610)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F498D #8D732F
analogous
#2F788D #2F498D #442F8D
triadic
#2F498D #8D2F49 #498D2F
tetradic
#2F498D #8D2F78 #8D732F #2F8D44
square
#2F498D #8D2F78 #8D732F #2F8D44
split-complementary
#2F498D #8D442F #788D2F
monochromatic
#101931 #20315F #2F498D #3E61BB #6985CD

Accessibility & contrast

On white

8.54
#2F498D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2F498D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F498D
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F498D#FFFFFF#000000##FFFFFF
##2F498D1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275190
Deuteranopia (green-blind)
#14488C
Tritanopia (blue-blind)
#005964
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f498d;
/* rgb */ color: rgb(47, 73, 141);
/* oklch */ color: oklch(42.3% 0.117 265.9);
Tailwind
colors: {
  custom: {
    50: '#727baf',
    500: '#2f498d',
    950: '#000000',
  },
}
SCSS
$custom: #2f498d;
$custom-light: #727baf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f498d",
  "rgb": {
    "r": 47,
    "g": 73,
    "b": 141
  },
  "hsl": {
    "h": 223.404,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.42251,
    "c": 0.11699,
    "h": 265.9
  },
  "luminance": 0.07293
}

Semantic roles & 50–950 ramp

primary
#2F498D
secondary
#B49E64
accent
#B34EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090910
muted
#7B7B7F

Preview Lab

Preview with #2F498D

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

Preview Lab → · Contrast checker → · Palette generator →

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