#2F3B99#2F3B99

#2F3B99 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.3% C 0.153 H 272.0°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#2F3B99
RGBrgb(47, 59, 153)
HSLhsl(233, 53%, 39%)
HSVhsv(233, 69%, 60%)
CMYKcmyk(69.3%, 61.4%, 0%, 40%)
CIE-LABlab(29.49, 27.37, -52.92)
CIE-LCHlch(29.49, 59.58, 297.35°)
OKLaboklab(40.3% 0.0055 -0.1526)
OKLCHoklch(40.3% 0.153 272)
XYZxyz(8.4841, 6.0314, 30.8479)
Luminance0.0603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3B99 #998D2F
analogous
#2F7099 #2F3B99 #582F99
triadic
#2F3B99 #992F3B #3B992F
tetradic
#2F3B99 #992F70 #998D2F #2F9958
square
#2F3B99 #992F70 #998D2F #2F9958
split-complementary
#2F3B99 #99582F #70992F
monochromatic
#12173B #21296A #2F3B99 #4150C5 #6F7BD3

Accessibility & contrast

On white

9.52
#2F3B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2F3B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3B99
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3B99#FFFFFF#000000##FFFFFF
##2F3B991.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9C
Deuteranopia (green-blind)
#004197
Tritanopia (blue-blind)
#005364
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f3b99;
/* rgb */ color: rgb(47, 59, 153);
/* oklch */ color: oklch(40.3% 0.153 272.0);
Tailwind
colors: {
  custom: {
    50: '#7570b8',
    500: '#2f3b99',
    950: '#000000',
  },
}
SCSS
$custom: #2f3b99;
$custom-light: #7570b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3b99",
  "rgb": {
    "r": 47,
    "g": 59,
    "b": 153
  },
  "hsl": {
    "h": 233.208,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40297,
    "c": 0.15269,
    "h": 272
  },
  "luminance": 0.06032
}

Semantic roles & 50–950 ramp

primary
#2F3B99
secondary
#BAB169
accent
#CC4BDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3B99

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

Preview Lab → · Contrast checker → · Palette generator →

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