#2F3194#2F3194

#2F3194 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.158 H 275.0°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#2F3194
RGBrgb(47, 49, 148)
HSLhsl(239, 52%, 38%)
HSVhsv(239, 68%, 58%)
CMYKcmyk(68.2%, 66.9%, 0%, 42%)
CIE-LABlab(26.56, 32.10, -54.65)
CIE-LCHlch(26.56, 63.38, 300.43°)
OKLaboklab(38.01% 0.0137 -0.1577)
OKLCHoklch(38.01% 0.158 275)
XYZxyz(7.6141, 4.9384, 28.5632)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3194 #94922F
analogous
#2F6394 #2F3194 #5F2F94
triadic
#2F3194 #942F31 #31942F
tetradic
#2F3194 #942F63 #94922F #2F945F
square
#2F3194 #942F63 #94922F #2F945F
split-complementary
#2F3194 #945F2F #63942F
monochromatic
#111237 #202266 #2F3194 #3E41C2 #6D6FD1

Accessibility & contrast

On white

10.56
#2F3194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2F3194 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3194
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3194#FFFFFF#000000##FFFFFF
##2F31941.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#003A92
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f3194;
/* rgb */ color: rgb(47, 49, 148);
/* oklch */ color: oklch(38.0% 0.158 275.0);
Tailwind
colors: {
  custom: {
    50: '#7569b4',
    500: '#2f3194',
    950: '#000000',
  },
}
SCSS
$custom: #2f3194;
$custom-light: #7569b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3194",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 148
  },
  "hsl": {
    "h": 238.812,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38009,
    "c": 0.15834,
    "h": 275
  },
  "luminance": 0.04939
}

Semantic roles & 50–950 ramp

primary
#2F3194
secondary
#B8B667
accent
#D84DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2F3194

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

Preview Lab → · Contrast checker → · Palette generator →

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