#2F5498#2F5498

#2F5498 is a mid, moderate blue. Relative luminance 0.092; OKLCH L 45.5% C 0.119 H 261.4°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#2F5498
RGBrgb(47, 84, 152)
HSLhsl(219, 53%, 39%)
HSVhsv(219, 69%, 60%)
CMYKcmyk(69.1%, 44.7%, 0%, 40.4%)
CIE-LABlab(36.39, 10.30, -41.18)
CIE-LCHlch(36.39, 42.45, 284.04°)
OKLaboklab(45.49% -0.0177 -0.1177)
OKLCHoklch(45.49% 0.119 261.4)
XYZxyz(10.0081, 9.2110, 30.9501)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5498 #98732F
analogous
#2F8998 #2F5498 #3F2F98
triadic
#2F5498 #982F54 #54982F
tetradic
#2F5498 #982F89 #98732F #2F983F
square
#2F5498 #982F89 #98732F #2F983F
split-complementary
#2F5498 #983F2F #89982F
monochromatic
#12203B #213A69 #2F5498 #406FC4 #6F92D2

Accessibility & contrast

On white

7.39
#2F5498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2F5498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5498
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5498#FFFFFF#000000##FFFFFF
##2F54981.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335B9B
Deuteranopia (green-blind)
#215197
Tritanopia (blue-blind)
#00646E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2f5498;
/* rgb */ color: rgb(47, 84, 152);
/* oklch */ color: oklch(45.5% 0.119 261.4);
Tailwind
colors: {
  custom: {
    50: '#7483b7',
    500: '#2f5498',
    950: '#000000',
  },
}
SCSS
$custom: #2f5498;
$custom-light: #7483b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5498",
  "rgb": {
    "r": 47,
    "g": 84,
    "b": 152
  },
  "hsl": {
    "h": 218.857,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45492,
    "c": 0.11901,
    "h": 261.4
  },
  "luminance": 0.09212
}

Semantic roles & 50–950 ramp

primary
#2F5498
secondary
#BA9D69
accent
#A94CDC
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F5498

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

Preview Lab → · Contrast checker → · Palette generator →

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