#2F498B#2F498B

#2F498B is a dark, moderate blue. Relative luminance 0.072; OKLCH L 42.1% C 0.114 H 265.6°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#2F498B
RGBrgb(47, 73, 139)
HSLhsl(223, 49%, 36%)
HSVhsv(223, 66%, 55%)
CMYKcmyk(66.2%, 47.5%, 0%, 45.5%)
CIE-LABlab(32.33, 12.73, -39.76)
CIE-LCHlch(32.33, 41.75, 287.75°)
OKLaboklab(42.11% -0.0088 -0.1137)
OKLCHoklch(42.11% 0.114 265.6)
XYZxyz(8.2134, 7.2327, 25.3843)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F498B #8B712F
analogous
#2F778B #2F498B #432F8B
triadic
#2F498B #8B2F49 #498B2F
tetradic
#2F498B #8B2F77 #8B712F #2F8B43
square
#2F498B #8B2F77 #8B712F #2F8B43
split-complementary
#2F498B #8B432F #778B2F
monochromatic
#101930 #20315D #2F498B #3E61B9 #6885CC

Accessibility & contrast

On white

8.58
#2F498B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2F498B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F498B
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F498B#FFFFFF#000000##FFFFFF
##2F498B1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28518D
Deuteranopia (green-blind)
#18488A
Tritanopia (blue-blind)
#005863
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f498b;
/* rgb */ color: rgb(47, 73, 139);
/* oklch */ color: oklch(42.1% 0.114 265.6);
Tailwind
colors: {
  custom: {
    50: '#727bad',
    500: '#2f498b',
    950: '#000000',
  },
}
SCSS
$custom: #2f498b;
$custom-light: #727bad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f498b",
  "rgb": {
    "r": 47,
    "g": 73,
    "b": 139
  },
  "hsl": {
    "h": 223.043,
    "s": 49.462,
    "l": 36.471
  },
  "oklch": {
    "l": 0.42109,
    "c": 0.11403,
    "h": 265.6
  },
  "luminance": 0.07234
}

Semantic roles & 50–950 ramp

primary
#2F498B
secondary
#B39C63
accent
#B24FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2F498B

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

Preview Lab → · Contrast checker → · Palette generator →

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