#2F3D9D#2F3D9D

#2F3D9D is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.156 H 271.4°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#2F3D9D
RGBrgb(47, 61, 157)
HSLhsl(232, 54%, 40%)
HSVhsv(232, 70%, 62%)
CMYKcmyk(70.1%, 61.1%, 0%, 38.4%)
CIE-LABlab(30.34, 27.52, -53.97)
CIE-LCHlch(30.34, 60.58, 297.01°)
OKLaboklab(41.03% 0.0038 -0.1556)
OKLCHoklch(41.03% 0.156 271.4)
XYZxyz(8.9248, 6.3753, 32.6520)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3D9D #9D8F2F
analogous
#2F749D #2F3D9D #582F9D
triadic
#2F3D9D #9D2F3D #3D9D2F
tetradic
#2F3D9D #9D2F74 #9D8F2F #2F9D58
square
#2F3D9D #9D2F74 #9D8F2F #2F9D58
split-complementary
#2F3D9D #9D582F #749D2F
monochromatic
#13183F #212B6E #2F3D9D #4353C7 #727ED5

Accessibility & contrast

On white

9.23
#2F3D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2F3D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3D9D
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3D9D#FFFFFF#000000##FFFFFF
##2F3D9D1.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#00439B
Tritanopia (blue-blind)
#005567
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2f3d9d;
/* rgb */ color: rgb(47, 61, 157);
/* oklch */ color: oklch(41.0% 0.156 271.4);
Tailwind
colors: {
  custom: {
    50: '#7672bb',
    500: '#2f3d9d',
    950: '#000000',
  },
}
SCSS
$custom: #2f3d9d;
$custom-light: #7672bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3d9d",
  "rgb": {
    "r": 47,
    "g": 61,
    "b": 157
  },
  "hsl": {
    "h": 232.364,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.41029,
    "c": 0.1557,
    "h": 271.4
  },
  "luminance": 0.06376
}

Semantic roles & 50–950 ramp

primary
#2F3D9D
secondary
#BCB26B
accent
#CB4BDD
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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