#2F3E99#2F3E99

#2F3E99 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.9% C 0.149 H 271.1°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#2F3E99
RGBrgb(47, 62, 153)
HSLhsl(232, 53%, 39%)
HSVhsv(232, 69%, 60%)
CMYKcmyk(69.3%, 59.5%, 0%, 40%)
CIE-LABlab(30.28, 25.38, -51.65)
CIE-LCHlch(30.28, 57.54, 296.17°)
OKLaboklab(40.88% 0.0029 -0.1488)
OKLCHoklch(40.88% 0.149 271.1)
XYZxyz(8.6427, 6.3487, 30.9008)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3E99 #998A2F
analogous
#2F7399 #2F3E99 #552F99
triadic
#2F3E99 #992F3E #3E992F
tetradic
#2F3E99 #992F73 #998A2F #2F9955
square
#2F3E99 #992F73 #998A2F #2F9955
split-complementary
#2F3E99 #99552F #73992F
monochromatic
#12183B #212B6A #2F3E99 #4153C5 #6F7ED3

Accessibility & contrast

On white

9.25
#2F3E99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2F3E99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3E99
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3E99#FFFFFF#000000##FFFFFF
##2F3E991.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f3e99;
/* rgb */ color: rgb(47, 62, 153);
/* oklch */ color: oklch(40.9% 0.149 271.1);
Tailwind
colors: {
  custom: {
    50: '#7573b8',
    500: '#2f3e99',
    950: '#000000',
  },
}
SCSS
$custom: #2f3e99;
$custom-light: #7573b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3e99",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 153
  },
  "hsl": {
    "h": 231.509,
    "s": 53,
    "l": 39.216
  },
  "oklch": {
    "l": 0.40879,
    "c": 0.14883,
    "h": 271.1
  },
  "luminance": 0.06349
}

Semantic roles & 50–950 ramp

primary
#2F3E99
secondary
#BAAF69
accent
#C84BDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2F3E99

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

Preview Lab → · Contrast checker → · Palette generator →

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