#2F3299#2F3299

#2F3299 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.7% C 0.164 H 274.4°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#2F3299
RGBrgb(47, 50, 153)
HSLhsl(238, 53%, 39%)
HSVhsv(238, 69%, 60%)
CMYKcmyk(69.3%, 67.3%, 0%, 40%)
CIE-LABlab(27.25, 33.23, -56.58)
CIE-LCHlch(27.25, 65.62, 300.43°)
OKLaboklab(38.66% 0.0125 -0.1634)
OKLCHoklch(38.66% 0.164 274.4)
XYZxyz(8.0608, 5.1847, 30.7068)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3299 #99962F
analogous
#2F6799 #2F3299 #612F99
triadic
#2F3299 #992F32 #32992F
tetradic
#2F3299 #992F67 #99962F #2F9961
square
#2F3299 #992F67 #99962F #2F9961
split-complementary
#2F3299 #99612F #67992F
monochromatic
#12133B #21236A #2F3299 #4144C5 #6F72D3

Accessibility & contrast

On white

10.31
#2F3299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2F3299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3299
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3299#FFFFFF#000000##FFFFFF
##2F32991.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#003C97
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f3299;
/* rgb */ color: rgb(47, 50, 153);
/* oklch */ color: oklch(38.7% 0.164 274.4);
Tailwind
colors: {
  custom: {
    50: '#766ab8',
    500: '#2f3299',
    950: '#000000',
  },
}
SCSS
$custom: #2f3299;
$custom-light: #766ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3299",
  "rgb": {
    "r": 47,
    "g": 50,
    "b": 153
  },
  "hsl": {
    "h": 238.302,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38656,
    "c": 0.16385,
    "h": 274.4
  },
  "luminance": 0.05185
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F3299

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

Preview Lab → · Contrast checker → · Palette generator →

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