#2F3F9E#2F3F9E

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

Color values

HEX#2F3F9E
RGBrgb(47, 63, 158)
HSLhsl(231, 54%, 40%)
HSVhsv(231, 70%, 62%)
CMYKcmyk(70.3%, 60.1%, 0%, 38%)
CIE-LABlab(30.94, 26.56, -53.60)
CIE-LCHlch(30.94, 59.82, 296.36°)
OKLaboklab(41.5% 0.0021 -0.1545)
OKLCHoklch(41.5% 0.155 270.8)
XYZxyz(9.1193, 6.6271, 33.1397)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3F9E #9E8E2F
analogous
#2F779E #2F3F9E #562F9E
triadic
#2F3F9E #9E2F3F #3F9E2F
tetradic
#2F3F9E #9E2F77 #9E8E2F #2F9E56
square
#2F3F9E #9E2F77 #9E8E2F #2F9E56
split-complementary
#2F3F9E #9E562F #779E2F
monochromatic
#131940 #212C6F #2F3F9E #4356C7 #7281D5

Accessibility & contrast

On white

9.03
#2F3F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F3F9E
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3F9E#FFFFFF#000000##FFFFFF
##2F3F9E1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#00449C
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2f3f9e;
/* rgb */ color: rgb(47, 63, 158);
/* oklch */ color: oklch(41.5% 0.155 270.8);
Tailwind
colors: {
  custom: {
    50: '#7673bb',
    500: '#2f3f9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f3f9e;
$custom-light: #7673bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3f9e",
  "rgb": {
    "r": 47,
    "g": 63,
    "b": 158
  },
  "hsl": {
    "h": 231.351,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41501,
    "c": 0.15453,
    "h": 270.8
  },
  "luminance": 0.06628
}

Semantic roles & 50–950 ramp

primary
#2F3F9E
secondary
#BDB16C
accent
#C84ADE
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F3F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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