#2F3E9F#2F3E9F

#2F3E9F is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.4% C 0.157 H 271.1°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#2F3E9F
RGBrgb(47, 62, 159)
HSLhsl(232, 54%, 40%)
HSVhsv(232, 70%, 62%)
CMYKcmyk(70.4%, 61%, 0%, 37.6%)
CIE-LABlab(30.76, 27.59, -54.49)
CIE-LCHlch(30.76, 61.08, 296.86°)
OKLaboklab(41.4% 0.0029 -0.1572)
OKLCHoklch(41.4% 0.157 271.1)
XYZxyz(9.1508, 6.5519, 33.5766)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3E9F #9F902F
analogous
#2F769F #2F3E9F #582F9F
triadic
#2F3E9F #9F2F3E #3E9F2F
tetradic
#2F3E9F #9F2F76 #9F902F #2F9F58
square
#2F3E9F #9F2F76 #9F902F #2F9F58
split-complementary
#2F3E9F #9F582F #769F2F
monochromatic
#131941 #212C70 #2F3E9F #4455C8 #7380D6

Accessibility & contrast

On white

9.09
#2F3E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F3E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3E9F
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3E9F#FFFFFF#000000##FFFFFF
##2F3E9F1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#005668
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f3e9f;
/* rgb */ color: rgb(47, 62, 159);
/* oklch */ color: oklch(41.4% 0.157 271.1);
Tailwind
colors: {
  custom: {
    50: '#7773bc',
    500: '#2f3e9f',
    950: '#000000',
  },
}
SCSS
$custom: #2f3e9f;
$custom-light: #7773bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3e9f",
  "rgb": {
    "r": 47,
    "g": 62,
    "b": 159
  },
  "hsl": {
    "h": 231.964,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41395,
    "c": 0.15719,
    "h": 271.1
  },
  "luminance": 0.06553
}

Semantic roles & 50–950 ramp

primary
#2F3E9F
secondary
#BDB26D
accent
#CA4ADE
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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