#2F509C#2F509C

#2F509C is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.9% C 0.130 H 264.2°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#2F509C
RGBrgb(47, 80, 156)
HSLhsl(222, 54%, 40%)
HSVhsv(222, 70%, 61%)
CMYKcmyk(69.9%, 48.7%, 0%, 38.8%)
CIE-LABlab(35.48, 14.45, -45.04)
CIE-LCHlch(35.48, 47.31, 287.79°)
OKLaboklab(44.88% -0.0131 -0.1291)
OKLCHoklch(44.88% 0.13 264.2)
XYZxyz(10.0396, 8.7410, 32.6041)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F509C #9C7B2F
analogous
#2F879C #2F509C #452F9C
triadic
#2F509C #9C2F50 #509C2F
tetradic
#2F509C #9C2F87 #9C7B2F #2F9C45
square
#2F509C #9C2F87 #9C7B2F #2F9C45
split-complementary
#2F509C #9C452F #879C2F
monochromatic
#13203E #21386D #2F509C #426AC6 #718FD4

Accessibility & contrast

On white

7.64
#2F509C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2F509C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F509C
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F509C#FFFFFF#000000##FFFFFF
##2F509C1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27599F
Deuteranopia (green-blind)
#0C4F9A
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f509c;
/* rgb */ color: rgb(47, 80, 156);
/* oklch */ color: oklch(44.9% 0.130 264.2);
Tailwind
colors: {
  custom: {
    50: '#7580ba',
    500: '#2f509c',
    950: '#000000',
  },
}
SCSS
$custom: #2f509c;
$custom-light: #7580ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f509c",
  "rgb": {
    "r": 47,
    "g": 80,
    "b": 156
  },
  "hsl": {
    "h": 221.835,
    "s": 53.695,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44879,
    "c": 0.12978,
    "h": 264.2
  },
  "luminance": 0.08742
}

Semantic roles & 50–950 ramp

primary
#2F509C
secondary
#BCA36B
accent
#B14BDD
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F509C

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

Preview Lab → · Contrast checker → · Palette generator →

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