#2F5189#2F5189

#2F5189 is a dark, moderate blue. Relative luminance 0.083; OKLCH L 43.8% C 0.101 H 259.9°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#2F5189
RGBrgb(47, 81, 137)
HSLhsl(217, 49%, 36%)
HSVhsv(217, 66%, 54%)
CMYKcmyk(65.7%, 40.9%, 0%, 46.3%)
CIE-LABlab(34.59, 6.66, -34.93)
CIE-LCHlch(34.59, 35.56, 280.80°)
OKLaboklab(43.81% -0.0178 -0.0994)
OKLCHoklch(43.81% 0.101 259.9)
XYZxyz(8.6285, 8.2945, 24.8083)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5189 #89672F
analogous
#2F7E89 #2F5189 #3A2F89
triadic
#2F5189 #892F51 #51892F
tetradic
#2F5189 #892F7E #89672F #2F893A
square
#2F5189 #892F7E #89672F #2F893A
split-complementary
#2F5189 #893A2F #7E892F
monochromatic
#101B2E #1F365B #2F5189 #3F6CB7 #678DCB

Accessibility & contrast

On white

7.90
#2F5189 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2F5189 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5189
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5189#FFFFFF#000000##FFFFFF
##2F51891.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38568B
Deuteranopia (green-blind)
#2B4D88
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5189;
/* rgb */ color: rgb(47, 81, 137);
/* oklch */ color: oklch(43.8% 0.101 259.9);
Tailwind
colors: {
  custom: {
    50: '#7181ac',
    500: '#2f5189',
    950: '#000000',
  },
}
SCSS
$custom: #2f5189;
$custom-light: #7181ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5189",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 137
  },
  "hsl": {
    "h": 217.333,
    "s": 48.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43809,
    "c": 0.10096,
    "h": 259.9
  },
  "luminance": 0.08295
}

Semantic roles & 50–950 ramp

primary
#2F5189
secondary
#B29462
accent
#A54FD8
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2F5189

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

Preview Lab → · Contrast checker → · Palette generator →

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