#2F3993#2F3993

#2F3993 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.147 H 272.8°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#2F3993
RGBrgb(47, 57, 147)
HSLhsl(234, 52%, 38%)
HSVhsv(234, 68%, 58%)
CMYKcmyk(68%, 61.2%, 0%, 42.4%)
CIE-LABlab(28.48, 26.50, -50.91)
CIE-LCHlch(28.48, 57.39, 297.50°)
OKLaboklab(39.39% 0.0072 -0.1467)
OKLCHoklch(39.39% 0.147 272.8)
XYZxyz(7.9001, 5.6365, 28.2697)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3993 #93892F
analogous
#2F6B93 #2F3993 #572F93
triadic
#2F3993 #932F39 #39932F
tetradic
#2F3993 #932F6B #93892F #2F9357
square
#2F3993 #932F6B #93892F #2F9357
split-complementary
#2F3993 #93572F #6B932F
monochromatic
#111536 #202765 #2F3993 #3E4BC1 #6C76D0

Accessibility & contrast

On white

9.87
#2F3993 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2F3993 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3993
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3993#FFFFFF#000000##FFFFFF
##2F39931.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004896
Deuteranopia (green-blind)
#003F91
Tritanopia (blue-blind)
#004F60
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f3993;
/* rgb */ color: rgb(47, 57, 147);
/* oklch */ color: oklch(39.4% 0.147 272.8);
Tailwind
colors: {
  custom: {
    50: '#746fb3',
    500: '#2f3993',
    950: '#000000',
  },
}
SCSS
$custom: #2f3993;
$custom-light: #746fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3993",
  "rgb": {
    "r": 47,
    "g": 57,
    "b": 147
  },
  "hsl": {
    "h": 234,
    "s": 51.546,
    "l": 38.039
  },
  "oklch": {
    "l": 0.3939,
    "c": 0.14687,
    "h": 272.8
  },
  "luminance": 0.05637
}

Semantic roles & 50–950 ramp

primary
#2F3993
secondary
#B7AF66
accent
#CD4DDB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3993

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

Preview Lab → · Contrast checker → · Palette generator →

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