#2F3F9D#2F3F9D

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

Color values

HEX#2F3F9D
RGBrgb(47, 63, 157)
HSLhsl(231, 54%, 40%)
HSVhsv(231, 70%, 62%)
CMYKcmyk(70.1%, 59.9%, 0%, 38.4%)
CIE-LABlab(30.86, 26.19, -53.12)
CIE-LCHlch(30.86, 59.23, 296.24°)
OKLaboklab(41.42% 0.0021 -0.1531)
OKLCHoklch(41.42% 0.153 270.8)
XYZxyz(9.0335, 6.5928, 32.6882)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F9D #9D8D2F
analogous
#2F769D #2F3F9D #562F9D
triadic
#2F3F9D #9D2F3F #3F9D2F
tetradic
#2F3F9D #9D2F76 #9D8D2F #2F9D56
square
#2F3F9D #9D2F76 #9D8D2F #2F9D56
split-complementary
#2F3F9D #9D562F #769D2F
monochromatic
#13193F #212C6E #2F3F9D #4356C7 #7280D5

Accessibility & contrast

On white

9.06
#2F3F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#2F3F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3F9D
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F9D#FFFFFF#000000##FFFFFF
##2F3F9D1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#00449B
Tritanopia (blue-blind)
#005667
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f3f9d;
/* rgb */ color: rgb(47, 63, 157);
/* oklch */ color: oklch(41.4% 0.153 270.8);
Tailwind
colors: {
  custom: {
    50: '#7673bb',
    500: '#2f3f9d',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f9d;
$custom-light: #7673bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f9d",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 157
  },
  "hsl": {
    "h": 231.273,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.41416,
    "c": 0.15314,
    "h": 270.8
  },
  "luminance": 0.06594
}

Semantic roles & 50–950 ramp

primary
#2F3F9D
secondary
#BCB16B
accent
#C84BDD
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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