#2F509D#2F509D

#2F509D is a dark, vivid blue. Relative luminance 0.088; OKLCH L 45.0% C 0.131 H 264.3°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#2F509D
RGBrgb(47, 80, 157)
HSLhsl(222, 54%, 40%)
HSVhsv(222, 70%, 62%)
CMYKcmyk(70.1%, 49%, 0%, 38.4%)
CIE-LABlab(35.55, 14.83, -45.54)
CIE-LCHlch(35.55, 47.89, 288.04°)
OKLaboklab(44.95% -0.013 -0.1306)
OKLCHoklch(44.95% 0.131 264.3)
XYZxyz(10.1246, 8.7750, 33.0519)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F509D #9D7C2F
analogous
#2F879D #2F509D #452F9D
triadic
#2F509D #9D2F50 #509D2F
tetradic
#2F509D #9D2F87 #9D7C2F #2F9D45
square
#2F509D #9D2F87 #9D7C2F #2F9D45
split-complementary
#2F509D #9D452F #879D2F
monochromatic
#13203F #21386E #2F509D #436AC7 #728FD5

Accessibility & contrast

On white

7.62
#2F509D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2F509D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F509D
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F509D#FFFFFF#000000##FFFFFF
##2F509D1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2659A0
Deuteranopia (green-blind)
#094F9B
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f509d;
/* rgb */ color: rgb(47, 80, 157);
/* oklch */ color: oklch(45.0% 0.131 264.3);
Tailwind
colors: {
  custom: {
    50: '#7580ba',
    500: '#2f509d',
    950: '#000000',
  },
}
SCSS
$custom: #2f509d;
$custom-light: #7580ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f509d",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 157
  },
  "hsl": {
    "h": 222,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.44951,
    "c": 0.13121,
    "h": 264.3
  },
  "luminance": 0.08776
}

Semantic roles & 50–950 ramp

primary
#2F509D
secondary
#BCA46B
accent
#B14BDD
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2F509D

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

Preview Lab → · Contrast checker → · Palette generator →

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