#2F5181#2F5181

#2F5181 is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.3% C 0.089 H 257.2°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#2F5181
RGBrgb(47, 81, 129)
HSLhsl(215, 47%, 35%)
HSVhsv(215, 64%, 51%)
CMYKcmyk(63.6%, 37.2%, 0%, 49.4%)
CIE-LABlab(34.14, 3.71, -30.74)
CIE-LCHlch(34.14, 30.96, 276.89°)
OKLaboklab(43.31% -0.0198 -0.0871)
OKLCHoklch(43.31% 0.089 257.2)
XYZxyz(8.0758, 8.0734, 21.8974)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5181 #815F2F
analogous
#2F7A81 #2F5181 #362F81
triadic
#2F5181 #812F51 #51812F
tetradic
#2F5181 #812F7A #815F2F #2F8136
square
#2F5181 #812F7A #815F2F #2F8136
split-complementary
#2F5181 #81362F #7A812F
monochromatic
#0E1927 #1F3554 #2F5181 #3F6DAE #648DC6

Accessibility & contrast

On white

8.03
#2F5181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2F5181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5181
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5181#FFFFFF#000000##FFFFFF
##2F51811.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D5483
Deuteranopia (green-blind)
#314D80
Tritanopia (blue-blind)
#005C63
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f5181;
/* rgb */ color: rgb(47, 81, 129);
/* oklch */ color: oklch(43.3% 0.089 257.2);
Tailwind
colors: {
  custom: {
    50: '#7081a6',
    500: '#2f5181',
    950: '#000000',
  },
}
SCSS
$custom: #2f5181;
$custom-light: #7081a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5181",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 129
  },
  "hsl": {
    "h": 215.122,
    "s": 46.591,
    "l": 34.51
  },
  "oklch": {
    "l": 0.43308,
    "c": 0.08933,
    "h": 257.2
  },
  "luminance": 0.08074
}

Semantic roles & 50–950 ramp

primary
#2F5181
secondary
#AD8D5E
accent
#9F52D6
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F5181

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

Preview Lab → · Contrast checker → · Palette generator →

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