#2F5183#2F5183

#2F5183 is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.4% C 0.092 H 258.0°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#2F5183
RGBrgb(47, 81, 131)
HSLhsl(216, 47%, 35%)
HSVhsv(216, 64%, 51%)
CMYKcmyk(64.1%, 38.2%, 0%, 48.6%)
CIE-LABlab(34.25, 4.45, -31.79)
CIE-LCHlch(34.25, 32.10, 277.96°)
OKLaboklab(43.43% -0.0192 -0.0902)
OKLCHoklch(43.43% 0.092 258)
XYZxyz(8.2100, 8.1271, 22.6044)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5183 #83612F
analogous
#2F7B83 #2F5183 #372F83
triadic
#2F5183 #832F51 #51832F
tetradic
#2F5183 #832F7B #83612F #2F8337
square
#2F5183 #832F7B #83612F #2F8337
split-complementary
#2F5183 #83372F #7B832F
monochromatic
#0F1929 #1F3556 #2F5183 #3F6DB0 #658DC8

Accessibility & contrast

On white

8.00
#2F5183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2F5183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F5183
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5183#FFFFFF#000000##FFFFFF
##2F51831.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5585
Deuteranopia (green-blind)
#304D82
Tritanopia (blue-blind)
#005C63
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f5183;
/* rgb */ color: rgb(47, 81, 131);
/* oklch */ color: oklch(43.4% 0.092 258.0);
Tailwind
colors: {
  custom: {
    50: '#7081a7',
    500: '#2f5183',
    950: '#000000',
  },
}
SCSS
$custom: #2f5183;
$custom-light: #7081a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5183",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 131
  },
  "hsl": {
    "h": 215.714,
    "s": 47.191,
    "l": 34.902
  },
  "oklch": {
    "l": 0.43431,
    "c": 0.09223,
    "h": 258
  },
  "luminance": 0.08128
}

Semantic roles & 50–950 ramp

primary
#2F5183
secondary
#AF8E5F
accent
#A151D7
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #2F5183

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

Preview Lab → · Contrast checker → · Palette generator →

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