#2F3E94#2F3E94

#2F3E94 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.142 H 271.1°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#2F3E94
RGBrgb(47, 62, 148)
HSLhsl(231, 52%, 38%)
HSVhsv(231, 68%, 58%)
CMYKcmyk(68.2%, 58.1%, 0%, 42%)
CIE-LABlab(29.88, 23.52, -49.24)
CIE-LCHlch(29.88, 54.57, 295.54°)
OKLaboklab(40.46% 0.0028 -0.1417)
OKLCHoklch(40.46% 0.142 271.1)
XYZxyz(8.2384, 6.1869, 28.7713)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3E94 #94852F
analogous
#2F7094 #2F3E94 #522F94
triadic
#2F3E94 #942F3E #3E942F
tetradic
#2F3E94 #942F70 #94852F #2F9452
square
#2F3E94 #942F70 #94852F #2F9452
split-complementary
#2F3E94 #94522F #70942F
monochromatic
#111737 #202B66 #2F3E94 #3E52C2 #6D7CD1

Accessibility & contrast

On white

9.39
#2F3E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2F3E94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3E94
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3E94#FFFFFF#000000##FFFFFF
##2F3E941.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B97
Deuteranopia (green-blind)
#004292
Tritanopia (blue-blind)
#005362
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f3e94;
/* rgb */ color: rgb(47, 62, 148);
/* oklch */ color: oklch(40.5% 0.142 271.1);
Tailwind
colors: {
  custom: {
    50: '#7473b4',
    500: '#2f3e94',
    950: '#000000',
  },
}
SCSS
$custom: #2f3e94;
$custom-light: #7473b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3e94",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 148
  },
  "hsl": {
    "h": 231.089,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40459,
    "c": 0.14175,
    "h": 271.1
  },
  "luminance": 0.06188
}

Semantic roles & 50–950 ramp

primary
#2F3E94
secondary
#B8AC67
accent
#C64DDB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3E94

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

Preview Lab → · Contrast checker → · Palette generator →

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