#2F509F#2F509F

#2F509F is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.1% C 0.134 H 264.6°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#2F509F
RGBrgb(47, 80, 159)
HSLhsl(222, 54%, 40%)
HSVhsv(222, 70%, 62%)
CMYKcmyk(70.4%, 49.7%, 0%, 37.6%)
CIE-LABlab(35.68, 15.59, -46.52)
CIE-LCHlch(35.68, 49.07, 288.52°)
OKLaboklab(45.1% -0.0127 -0.1335)
OKLCHoklch(45.1% 0.134 264.6)
XYZxyz(10.2968, 8.8438, 33.9585)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F509F #9F7E2F
analogous
#2F889F #2F509F #462F9F
triadic
#2F509F #9F2F50 #509F2F
tetradic
#2F509F #9F2F88 #9F7E2F #2F9F46
square
#2F509F #9F2F88 #9F7E2F #2F9F46
split-complementary
#2F509F #9F462F #889F2F
monochromatic
#132041 #213870 #2F509F #446AC8 #7390D6

Accessibility & contrast

On white

7.58
#2F509F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2F509F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F509F
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F509F#FFFFFF#000000##FFFFFF
##2F509F1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2459A2
Deuteranopia (green-blind)
#014F9D
Tritanopia (blue-blind)
#006370
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2f509f;
/* rgb */ color: rgb(47, 80, 159);
/* oklch */ color: oklch(45.1% 0.134 264.6);
Tailwind
colors: {
  custom: {
    50: '#7580bc',
    500: '#2f509f',
    950: '#000000',
  },
}
SCSS
$custom: #2f509f;
$custom-light: #7580bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f509f",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 159
  },
  "hsl": {
    "h": 222.321,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45097,
    "c": 0.13407,
    "h": 264.6
  },
  "luminance": 0.08845
}

Semantic roles & 50–950 ramp

primary
#2F509F
secondary
#BDA56D
accent
#B24ADE
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2F509F

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

Preview Lab → · Contrast checker → · Palette generator →

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