#2F3F9F#2F3F9F

#2F3F9F is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.156 H 270.8°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#2F3F9F
RGBrgb(47, 63, 159)
HSLhsl(231, 54%, 40%)
HSVhsv(231, 70%, 62%)
CMYKcmyk(70.4%, 60.4%, 0%, 37.6%)
CIE-LABlab(31.02, 26.93, -54.07)
CIE-LCHlch(31.02, 60.40, 296.48°)
OKLaboklab(41.59% 0.0021 -0.1559)
OKLCHoklch(41.59% 0.156 270.8)
XYZxyz(9.2057, 6.6617, 33.5948)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F9F #9F8F2F
analogous
#2F779F #2F3F9F #572F9F
triadic
#2F3F9F #9F2F3F #3F9F2F
tetradic
#2F3F9F #9F2F77 #9F8F2F #2F9F57
square
#2F3F9F #9F2F77 #9F8F2F #2F9F57
split-complementary
#2F3F9F #9F572F #779F2F
monochromatic
#131A41 #212C70 #2F3F9F #4456C8 #7381D6

Accessibility & contrast

On white

9.00
#2F3F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2F3F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F9F
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F9F#FFFFFF#000000##FFFFFF
##2F3F9F1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#00449D
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f3f9f;
/* rgb */ color: rgb(47, 63, 159);
/* oklch */ color: oklch(41.6% 0.156 270.8);
Tailwind
colors: {
  custom: {
    50: '#7673bc',
    500: '#2f3f9f',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f9f;
$custom-light: #7673bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f9f",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 159
  },
  "hsl": {
    "h": 231.429,
    "s": 54.369,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41587,
    "c": 0.15592,
    "h": 270.8
  },
  "luminance": 0.06663
}

Semantic roles & 50–950 ramp

primary
#2F3F9F
secondary
#BDB26D
accent
#C94ADE
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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