#2F3391#2F3391

#2F3391 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.152 H 274.7°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#2F3391
RGBrgb(47, 51, 145)
HSLhsl(238, 51%, 38%)
HSVhsv(238, 68%, 57%)
CMYKcmyk(67.6%, 64.8%, 0%, 43.1%)
CIE-LABlab(26.78, 29.73, -52.44)
CIE-LCHlch(26.78, 60.29, 299.55°)
OKLaboklab(38.09% 0.0124 -0.1512)
OKLCHoklch(38.09% 0.152 274.7)
XYZxyz(7.4653, 5.0157, 27.3573)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3391 #918D2F
analogous
#2F6491 #2F3391 #5C2F91
triadic
#2F3391 #912F33 #33912F
tetradic
#2F3391 #912F64 #918D2F #2F915C
square
#2F3391 #912F64 #918D2F #2F915C
split-complementary
#2F3391 #915C2F #64912F
monochromatic
#111235 #202363 #2F3391 #3E43BF #6B6FCF

Accessibility & contrast

On white

10.48
#2F3391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2F3391 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3391
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3391#FFFFFF#000000##FFFFFF
##2F33911.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004494
Deuteranopia (green-blind)
#003B8F
Tritanopia (blue-blind)
#004B5D
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f3391;
/* rgb */ color: rgb(47, 51, 145);
/* oklch */ color: oklch(38.1% 0.152 274.7);
Tailwind
colors: {
  custom: {
    50: '#746bb2',
    500: '#2f3391',
    950: '#000000',
  },
}
SCSS
$custom: #2f3391;
$custom-light: #746bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3391",
  "rgb": {
    "r": 47,
    "g": 51,
    "b": 145
  },
  "hsl": {
    "h": 237.551,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38088,
    "c": 0.15176,
    "h": 274.7
  },
  "luminance": 0.05016
}

Semantic roles & 50–950 ramp

primary
#2F3391
secondary
#B6B365
accent
#D54DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F3391

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

Preview Lab → · Contrast checker → · Palette generator →

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