#2F5195#2F5195

#2F5195 is a dark, moderate blue. Relative luminance 0.087; OKLCH L 44.6% C 0.118 H 262.6°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#2F5195
RGBrgb(47, 81, 149)
HSLhsl(220, 52%, 38%)
HSVhsv(220, 68%, 58%)
CMYKcmyk(68.5%, 45.6%, 0%, 41.6%)
CIE-LABlab(35.32, 11.15, -41.08)
CIE-LCHlch(35.32, 42.56, 285.19°)
OKLaboklab(44.61% -0.0153 -0.1174)
OKLCHoklch(44.61% 0.118 262.6)
XYZxyz(9.5376, 8.6582, 29.5965)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5195 #95732F
analogous
#2F8495 #2F5195 #402F95
triadic
#2F5195 #952F51 #51952F
tetradic
#2F5195 #952F84 #95732F #2F9540
square
#2F5195 #952F84 #95732F #2F9540
split-complementary
#2F5195 #95402F #84952F
monochromatic
#121E38 #203866 #2F5195 #3F6BC2 #6D8FD1

Accessibility & contrast

On white

7.69
#2F5195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F5195
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5195#FFFFFF#000000##FFFFFF
##2F51951.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305898
Deuteranopia (green-blind)
#1E4F94
Tritanopia (blue-blind)
#00616B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2f5195;
/* rgb */ color: rgb(47, 81, 149);
/* oklch */ color: oklch(44.6% 0.118 262.6);
Tailwind
colors: {
  custom: {
    50: '#7381b4',
    500: '#2f5195',
    950: '#000000',
  },
}
SCSS
$custom: #2f5195;
$custom-light: #7381b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5195",
  "rgb": {
    "r": 47,
    "g": 81,
    "b": 149
  },
  "hsl": {
    "h": 220,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.44607,
    "c": 0.11842,
    "h": 262.6
  },
  "luminance": 0.08659
}

Semantic roles & 50–950 ramp

primary
#2F5195
secondary
#B89D67
accent
#AC4CDB
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2F5195

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

Preview Lab → · Contrast checker → · Palette generator →

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