#2F3793#2F3793

#2F3793 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.0% C 0.149 H 273.4°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#2F3793
RGBrgb(47, 55, 147)
HSLhsl(235, 52%, 38%)
HSVhsv(235, 68%, 58%)
CMYKcmyk(68%, 62.6%, 0%, 42.4%)
CIE-LABlab(27.96, 27.83, -51.75)
CIE-LCHlch(27.96, 58.76, 298.27°)
OKLaboklab(39.01% 0.0089 -0.1492)
OKLCHoklch(39.01% 0.149 273.4)
XYZxyz(7.8032, 5.4426, 28.2374)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3793 #938B2F
analogous
#2F6993 #2F3793 #592F93
triadic
#2F3793 #932F37 #37932F
tetradic
#2F3793 #932F69 #938B2F #2F9359
square
#2F3793 #932F69 #938B2F #2F9359
split-complementary
#2F3793 #93592F #69932F
monochromatic
#111436 #202665 #2F3793 #3E48C1 #6C74D0

Accessibility & contrast

On white

10.05
#2F3793 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#2F3793 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3793
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3793#FFFFFF#000000##FFFFFF
##2F37931.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004796
Deuteranopia (green-blind)
#003E91
Tritanopia (blue-blind)
#004E5F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f3793;
/* rgb */ color: rgb(47, 55, 147);
/* oklch */ color: oklch(39.0% 0.149 273.4);
Tailwind
colors: {
  custom: {
    50: '#746eb3',
    500: '#2f3793',
    950: '#000000',
  },
}
SCSS
$custom: #2f3793;
$custom-light: #746eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3793",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 147
  },
  "hsl": {
    "h": 235.2,
    "s": 51.546,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39009,
    "c": 0.14944,
    "h": 273.4
  },
  "luminance": 0.05443
}

Semantic roles & 50–950 ramp

primary
#2F3793
secondary
#B7B166
accent
#D04DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3793

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

Preview Lab → · Contrast checker → · Palette generator →

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