#2F3198#2F3198

#2F3198 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.164 H 274.7°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#2F3198
RGBrgb(47, 49, 152)
HSLhsl(239, 53%, 39%)
HSVhsv(239, 69%, 60%)
CMYKcmyk(69.1%, 67.8%, 0%, 40.4%)
CIE-LABlab(26.93, 33.52, -56.51)
CIE-LCHlch(26.93, 65.70, 300.67°)
OKLaboklab(38.39% 0.0133 -0.1632)
OKLCHoklch(38.39% 0.164 274.7)
XYZxyz(7.9362, 5.0672, 30.2595)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3198 #98962F
analogous
#2F6698 #2F3198 #622F98
triadic
#2F3198 #982F31 #31982F
tetradic
#2F3198 #982F66 #98962F #2F9862
square
#2F3198 #982F66 #98962F #2F9862
split-complementary
#2F3198 #98622F #66982F
monochromatic
#12133B #212269 #2F3198 #4043C4 #6F71D2

Accessibility & contrast

On white

10.43
#2F3198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2F3198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3198
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3198#FFFFFF#000000##FFFFFF
##2F31981.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449B
Deuteranopia (green-blind)
#003B96
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f3198;
/* rgb */ color: rgb(47, 49, 152);
/* oklch */ color: oklch(38.4% 0.164 274.7);
Tailwind
colors: {
  custom: {
    50: '#7669b7',
    500: '#2f3198',
    950: '#000000',
  },
}
SCSS
$custom: #2f3198;
$custom-light: #7669b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3198",
  "rgb": {
    "r": 47,
    "g": 49,
    "b": 152
  },
  "hsl": {
    "h": 238.857,
    "s": 52.764,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38389,
    "c": 0.1637,
    "h": 274.7
  },
  "luminance": 0.05068
}

Semantic roles & 50–950 ramp

primary
#2F3198
secondary
#BAB869
accent
#D94CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2F3198

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

Preview Lab → · Contrast checker → · Palette generator →

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