#2F509B#2F509B

#2F509B is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.8% C 0.128 H 264.1°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#2F509B
RGBrgb(47, 80, 155)
HSLhsl(222, 53%, 40%)
HSVhsv(222, 70%, 61%)
CMYKcmyk(69.7%, 48.4%, 0%, 39.2%)
CIE-LABlab(35.41, 14.08, -44.55)
CIE-LCHlch(35.41, 46.72, 287.54°)
OKLaboklab(44.81% -0.0133 -0.1277)
OKLCHoklch(44.81% 0.128 264.1)
XYZxyz(9.9553, 8.7072, 32.1600)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F509B #9B7A2F
analogous
#2F869B #2F509B #442F9B
triadic
#2F509B #9B2F50 #509B2F
tetradic
#2F509B #9B2F86 #9B7A2F #2F9B44
square
#2F509B #9B2F86 #9B7A2F #2F9B44
split-complementary
#2F509B #9B442F #869B2F
monochromatic
#13203D #21386C #2F509B #426AC6 #718FD4

Accessibility & contrast

On white

7.66
#2F509B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2F509B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F509B
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F509B#FFFFFF#000000##FFFFFF
##2F509B1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28599E
Deuteranopia (green-blind)
#0F4F99
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f509b;
/* rgb */ color: rgb(47, 80, 155);
/* oklch */ color: oklch(44.8% 0.128 264.1);
Tailwind
colors: {
  custom: {
    50: '#7580b9',
    500: '#2f509b',
    950: '#000000',
  },
}
SCSS
$custom: #2f509b;
$custom-light: #7580b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f509b",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 155
  },
  "hsl": {
    "h": 221.667,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44807,
    "c": 0.12834,
    "h": 264.1
  },
  "luminance": 0.08708
}

Semantic roles & 50–950 ramp

primary
#2F509B
secondary
#BBA36A
accent
#B04BDD
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F509B

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

Preview Lab → · Contrast checker → · Palette generator →

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