#2F37BE#2F37BE

#2F37BE is a dark, highly saturated blue. Relative luminance 0.071; OKLCH L 43.1% C 0.206 H 271.4°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#2F37BE
RGBrgb(47, 55, 190)
HSLhsl(237, 60%, 46%)
HSVhsv(237, 75%, 75%)
CMYKcmyk(75.3%, 71.1%, 0%, 25.5%)
CIE-LABlab(31.93, 43.05, -71.09)
CIE-LCHlch(31.93, 83.11, 301.20°)
OKLaboklab(43.11% 0.005 -0.2058)
OKLCHoklch(43.11% 0.206 271.4)
XYZxyz(11.8296, 7.0532, 49.4432)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F37BE #BEB62F
analogous
#2F7FBE #2F37BE #6F2FBE
triadic
#2F37BE #BE2F37 #37BE2F
tetradic
#2F37BE #BE2F7F #BEB62F #2FBE6F
square
#2F37BE #BE2F7F #BEB62F #2FBE6F
split-complementary
#2F37BE #BE6F2F #7FBE2F
monochromatic
#171B5C #23298D #2F37BE #555CD5 #868BE1

Accessibility & contrast

On white

8.71
#2F37BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2F37BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F37BE
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F37BE#FFFFFF#000000##FFFFFF
##2F37BE1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C2
Deuteranopia (green-blind)
#0044BC
Tritanopia (blue-blind)
#005D77
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f37be;
/* rgb */ color: rgb(47, 55, 190);
/* oklch */ color: oklch(43.1% 0.206 271.4);
Tailwind
colors: {
  custom: {
    50: '#7e6fd3',
    500: '#2f37be',
    950: '#000000',
  },
}
SCSS
$custom: #2f37be;
$custom-light: #7e6fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f37be",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 190
  },
  "hsl": {
    "h": 236.643,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.43105,
    "c": 0.20583,
    "h": 271.4
  },
  "luminance": 0.07054
}

Semantic roles & 50–950 ramp

primary
#2F37BE
secondary
#CBC67E
accent
#DB44E3
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #2F37BE

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

Preview Lab → · Contrast checker → · Palette generator →

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