#2F3795#2F3795

#2F3795 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.2% C 0.152 H 273.3°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#2F3795
RGBrgb(47, 55, 149)
HSLhsl(235, 52%, 38%)
HSVhsv(235, 68%, 58%)
CMYKcmyk(68.5%, 63.1%, 0%, 41.6%)
CIE-LABlab(28.13, 28.55, -52.70)
CIE-LCHlch(28.13, 59.94, 298.45°)
OKLaboklab(39.19% 0.0089 -0.152)
OKLCHoklch(39.19% 0.152 273.3)
XYZxyz(7.9615, 5.5059, 29.0711)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3795 #958D2F
analogous
#2F6A95 #2F3795 #5A2F95
triadic
#2F3795 #952F37 #37952F
tetradic
#2F3795 #952F6A #958D2F #2F955A
square
#2F3795 #952F6A #958D2F #2F955A
split-complementary
#2F3795 #955A2F #6A952F
monochromatic
#121538 #202666 #2F3795 #3F49C2 #6D75D1

Accessibility & contrast

On white

9.99
#2F3795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2F3795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3795
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3795#FFFFFF#000000##FFFFFF
##2F37951.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004798
Deuteranopia (green-blind)
#003E93
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f3795;
/* rgb */ color: rgb(47, 55, 149);
/* oklch */ color: oklch(39.2% 0.152 273.3);
Tailwind
colors: {
  custom: {
    50: '#756eb5',
    500: '#2f3795',
    950: '#000000',
  },
}
SCSS
$custom: #2f3795;
$custom-light: #756eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3795",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 149
  },
  "hsl": {
    "h": 235.294,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.39187,
    "c": 0.15222,
    "h": 273.3
  },
  "luminance": 0.05507
}

Semantic roles & 50–950 ramp

primary
#2F3795
secondary
#B8B267
accent
#D04CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3795

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

Preview Lab → · Contrast checker → · Palette generator →

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