#2F498C#2F498C

#2F498C is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.2% C 0.116 H 265.7°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#2F498C
RGBrgb(47, 73, 140)
HSLhsl(223, 50%, 37%)
HSVhsv(223, 66%, 55%)
CMYKcmyk(66.4%, 47.9%, 0%, 45.1%)
CIE-LABlab(32.40, 13.11, -40.27)
CIE-LCHlch(32.40, 42.35, 288.03°)
OKLaboklab(42.18% -0.0086 -0.1152)
OKLCHoklch(42.18% 0.116 265.7)
XYZxyz(8.2868, 7.2621, 25.7709)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F498C #8C722F
analogous
#2F788C #2F498C #442F8C
triadic
#2F498C #8C2F49 #498C2F
tetradic
#2F498C #8C2F78 #8C722F #2F8C44
square
#2F498C #8C2F78 #8C722F #2F8C44
split-complementary
#2F498C #8C442F #788C2F
monochromatic
#101930 #20315E #2F498C #3E61BA #6985CD

Accessibility & contrast

On white

8.56
#2F498C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F498C
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F498C#FFFFFF#000000##FFFFFF
##2F498C1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27518E
Deuteranopia (green-blind)
#16488B
Tritanopia (blue-blind)
#005863
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f498c;
/* rgb */ color: rgb(47, 73, 140);
/* oklch */ color: oklch(42.2% 0.116 265.7);
Tailwind
colors: {
  custom: {
    50: '#727bae',
    500: '#2f498c',
    950: '#000000',
  },
}
SCSS
$custom: #2f498c;
$custom-light: #727bae;
$custom-dark: #000000;
JSON
{
  "hex": "#2f498c",
  "rgb": {
    "r": 47,
    "g": 73,
    "b": 140
  },
  "hsl": {
    "h": 223.226,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.4218,
    "c": 0.11551,
    "h": 265.7
  },
  "luminance": 0.07263
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F498C

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

Preview Lab → · Contrast checker → · Palette generator →

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