#2F5098#2F5098

#2F5098 is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.6% C 0.124 H 263.6°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#2F5098
RGBrgb(47, 80, 152)
HSLhsl(221, 53%, 39%)
HSVhsv(221, 69%, 60%)
CMYKcmyk(69.1%, 47.4%, 0%, 40.4%)
CIE-LABlab(35.22, 12.94, -43.05)
CIE-LCHlch(35.22, 44.96, 286.73°)
OKLaboklab(44.59% -0.0137 -0.1232)
OKLCHoklch(44.59% 0.124 263.6)
XYZxyz(9.7065, 8.6077, 30.8496)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5098 #98772F
analogous
#2F8598 #2F5098 #432F98
triadic
#2F5098 #982F50 #50982F
tetradic
#2F5098 #982F85 #98772F #2F9843
square
#2F5098 #982F85 #98772F #2F9843
split-complementary
#2F5098 #98432F #85982F
monochromatic
#121F3B #213769 #2F5098 #406AC4 #6F8ED2

Accessibility & contrast

On white

7.72
#2F5098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2F5098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5098
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5098#FFFFFF#000000##FFFFFF
##2F50981.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B589B
Deuteranopia (green-blind)
#164E97
Tritanopia (blue-blind)
#00616C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f5098;
/* rgb */ color: rgb(47, 80, 152);
/* oklch */ color: oklch(44.6% 0.124 263.6);
Tailwind
colors: {
  custom: {
    50: '#7480b7',
    500: '#2f5098',
    950: '#000000',
  },
}
SCSS
$custom: #2f5098;
$custom-light: #7480b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5098",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 152
  },
  "hsl": {
    "h": 221.143,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44593,
    "c": 0.12401,
    "h": 263.6
  },
  "luminance": 0.08609
}

Semantic roles & 50–950 ramp

primary
#2F5098
secondary
#BAA069
accent
#AF4CDC
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F5098

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

Preview Lab → · Contrast checker → · Palette generator →

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