#2F5398#2F5398

#2F5398 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.3% C 0.120 H 262.0°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#2F5398
RGBrgb(47, 83, 152)
HSLhsl(219, 53%, 39%)
HSVhsv(219, 69%, 60%)
CMYKcmyk(69.1%, 45.4%, 0%, 40.4%)
CIE-LABlab(36.09, 10.96, -41.65)
CIE-LCHlch(36.09, 43.07, 284.74°)
OKLaboklab(45.27% -0.0167 -0.1191)
OKLCHoklch(45.27% 0.12 262)
XYZxyz(9.9310, 9.0569, 30.9245)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5398 #98742F
analogous
#2F8898 #2F5398 #402F98
triadic
#2F5398 #982F53 #53982F
tetradic
#2F5398 #982F88 #98742F #2F9840
square
#2F5398 #982F88 #98742F #2F9840
split-complementary
#2F5398 #98402F #88982F
monochromatic
#12203B #213969 #2F5398 #406DC4 #6F91D2

Accessibility & contrast

On white

7.47
#2F5398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2F5398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5398
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5398#FFFFFF#000000##FFFFFF
##2F53981.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315A9B
Deuteranopia (green-blind)
#1E5097
Tritanopia (blue-blind)
#00636E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f5398;
/* rgb */ color: rgb(47, 83, 152);
/* oklch */ color: oklch(45.3% 0.120 262.0);
Tailwind
colors: {
  custom: {
    50: '#7482b7',
    500: '#2f5398',
    950: '#000000',
  },
}
SCSS
$custom: #2f5398;
$custom-light: #7482b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5398",
  "rgb": {
    "r": 47,
    "g": 83,
    "b": 152
  },
  "hsl": {
    "h": 219.429,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45265,
    "c": 0.12025,
    "h": 262
  },
  "luminance": 0.09058
}

Semantic roles & 50–950 ramp

primary
#2F5398
secondary
#BA9E69
accent
#AB4CDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F5398

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

Preview Lab → · Contrast checker → · Palette generator →

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