#2F3782#2F3782

#2F3782 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.6% C 0.125 H 274.1°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#2F3782
RGBrgb(47, 55, 130)
HSLhsl(234, 47%, 35%)
HSVhsv(234, 64%, 51%)
CMYKcmyk(63.8%, 57.7%, 0%, 49%)
CIE-LABlab(26.59, 21.60, -43.44)
CIE-LCHlch(26.59, 48.52, 296.44°)
OKLaboklab(37.56% 0.009 -0.1248)
OKLCHoklch(37.56% 0.125 274.1)
XYZxyz(6.5664, 4.9479, 21.7238)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3782 #827A2F
analogous
#2F6182 #2F3782 #512F82
triadic
#2F3782 #822F37 #37822F
tetradic
#2F3782 #822F61 #827A2F #2F8251
square
#2F3782 #822F61 #827A2F #2F8251
split-complementary
#2F3782 #82512F #61822F
monochromatic
#0E1128 #1F2455 #2F3782 #3F4AAF #646EC7

Accessibility & contrast

On white

10.55
#2F3782 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2F3782 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3782
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3782#FFFFFF#000000##FFFFFF
##2F37821.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004385
Deuteranopia (green-blind)
#003B80
Tritanopia (blue-blind)
#004957
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f3782;
/* rgb */ color: rgb(47, 55, 130);
/* oklch */ color: oklch(37.6% 0.125 274.1);
Tailwind
colors: {
  custom: {
    50: '#716da7',
    500: '#2f3782',
    950: '#000000',
  },
}
SCSS
$custom: #2f3782;
$custom-light: #716da7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3782",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 130
  },
  "hsl": {
    "h": 234.217,
    "s": 46.893,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37558,
    "c": 0.12508,
    "h": 274.1
  },
  "luminance": 0.04948
}

Semantic roles & 50–950 ramp

primary
#2F3782
secondary
#AEA65F
accent
#CA51D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F

Preview Lab

Preview with #2F3782

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

Preview Lab → · Contrast checker → · Palette generator →

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