#2F3D99#2F3D99

#2F3D99 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.7% C 0.150 H 271.4°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#2F3D99
RGBrgb(47, 61, 153)
HSLhsl(232, 53%, 39%)
HSVhsv(232, 69%, 60%)
CMYKcmyk(69.3%, 60.1%, 0%, 40%)
CIE-LABlab(30.01, 26.04, -52.07)
CIE-LCHlch(30.01, 58.22, 296.57°)
OKLaboklab(40.68% 0.0038 -0.1501)
OKLCHoklch(40.68% 0.15 271.4)
XYZxyz(8.5889, 6.2409, 30.8828)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D99 #998B2F
analogous
#2F7299 #2F3D99 #562F99
triadic
#2F3D99 #992F3D #3D992F
tetradic
#2F3D99 #992F72 #998B2F #2F9956
square
#2F3D99 #992F72 #998B2F #2F9956
split-complementary
#2F3D99 #99562F #72992F
monochromatic
#12183B #212A6A #2F3D99 #4152C5 #6F7DD3

Accessibility & contrast

On white

9.34
#2F3D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2F3D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D99
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D99#FFFFFF#000000##FFFFFF
##2F3D991.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9C
Deuteranopia (green-blind)
#004297
Tritanopia (blue-blind)
#005465
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f3d99;
/* rgb */ color: rgb(47, 61, 153);
/* oklch */ color: oklch(40.7% 0.150 271.4);
Tailwind
colors: {
  custom: {
    50: '#7572b8',
    500: '#2f3d99',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d99;
$custom-light: #7572b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d99",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 153
  },
  "hsl": {
    "h": 232.075,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40683,
    "c": 0.15012,
    "h": 271.4
  },
  "luminance": 0.06242
}

Semantic roles & 50–950 ramp

primary
#2F3D99
secondary
#BAB069
accent
#C94BDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3D99

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

Preview Lab → · Contrast checker → · Palette generator →

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