#2F3794#2F3794

#2F3794 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.1% C 0.151 H 273.4°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#2F3794
RGBrgb(47, 55, 148)
HSLhsl(235, 52%, 38%)
HSVhsv(235, 68%, 58%)
CMYKcmyk(68.2%, 62.8%, 0%, 42%)
CIE-LABlab(28.04, 28.19, -52.22)
CIE-LCHlch(28.04, 59.35, 298.36°)
OKLaboklab(39.1% 0.0089 -0.1506)
OKLCHoklch(39.1% 0.151 273.4)
XYZxyz(7.8820, 5.4741, 28.6525)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3794 #948C2F
analogous
#2F6994 #2F3794 #5A2F94
triadic
#2F3794 #942F37 #37942F
tetradic
#2F3794 #942F69 #948C2F #2F945A
square
#2F3794 #942F69 #948C2F #2F945A
split-complementary
#2F3794 #945A2F #69942F
monochromatic
#111437 #202666 #2F3794 #3E49C2 #6D75D1

Accessibility & contrast

On white

10.02
#2F3794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3794
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3794#FFFFFF#000000##FFFFFF
##2F37941.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004797
Deuteranopia (green-blind)
#003E92
Tritanopia (blue-blind)
#004E60
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f3794;
/* rgb */ color: rgb(47, 55, 148);
/* oklch */ color: oklch(39.1% 0.151 273.4);
Tailwind
colors: {
  custom: {
    50: '#756eb4',
    500: '#2f3794',
    950: '#000000',
  },
}
SCSS
$custom: #2f3794;
$custom-light: #756eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3794",
  "rgb": {
    "r": 47,
    "g": 55,
    "b": 148
  },
  "hsl": {
    "h": 235.248,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39098,
    "c": 0.15083,
    "h": 273.4
  },
  "luminance": 0.05475
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F3794

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

Preview Lab → · Contrast checker → · Palette generator →

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