#2F509A#2F509A

#2F509A is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.7% C 0.127 H 263.9°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#2F509A
RGBrgb(47, 80, 154)
HSLhsl(221, 53%, 39%)
HSVhsv(221, 69%, 60%)
CMYKcmyk(69.5%, 48.1%, 0%, 39.6%)
CIE-LABlab(35.35, 13.70, -44.05)
CIE-LCHlch(35.35, 46.13, 287.27°)
OKLaboklab(44.74% -0.0134 -0.1262)
OKLCHoklch(44.74% 0.127 263.9)
XYZxyz(9.8716, 8.6738, 31.7195)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F509A #9A792F
analogous
#2F869A #2F509A #432F9A
triadic
#2F509A #9A2F50 #509A2F
tetradic
#2F509A #9A2F86 #9A792F #2F9A43
square
#2F509A #9A2F86 #9A792F #2F9A43
split-complementary
#2F509A #9A432F #869A2F
monochromatic
#121F3C #21386B #2F509A #416AC5 #708FD3

Accessibility & contrast

On white

7.68
#2F509A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2F509A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F509A
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F509A#FFFFFF#000000##FFFFFF
##2F509A1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29589D
Deuteranopia (green-blind)
#114F98
Tritanopia (blue-blind)
#00616D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f509a;
/* rgb */ color: rgb(47, 80, 154);
/* oklch */ color: oklch(44.7% 0.127 263.9);
Tailwind
colors: {
  custom: {
    50: '#7480b8',
    500: '#2f509a',
    950: '#000000',
  },
}
SCSS
$custom: #2f509a;
$custom-light: #7480b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f509a",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 154
  },
  "hsl": {
    "h": 221.495,
    "s": 53.234,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44735,
    "c": 0.1269,
    "h": 263.9
  },
  "luminance": 0.08675
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F509A

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

Preview Lab → · Contrast checker → · Palette generator →

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