#2F3A91#2F3A91

#2F3A91 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.4% C 0.143 H 272.6°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#2F3A91
RGBrgb(47, 58, 145)
HSLhsl(233, 51%, 38%)
HSVhsv(233, 68%, 57%)
CMYKcmyk(67.6%, 60%, 0%, 43.1%)
CIE-LABlab(28.57, 25.10, -49.52)
CIE-LCHlch(28.57, 55.51, 296.88°)
OKLaboklab(39.41% 0.0064 -0.1426)
OKLCHoklch(39.41% 0.143 272.6)
XYZxyz(7.7945, 5.6741, 27.4670)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F3A91 #91862F
analogous
#2F6B91 #2F3A91 #552F91
triadic
#2F3A91 #912F3A #3A912F
tetradic
#2F3A91 #912F6B #91862F #2F9155
square
#2F3A91 #912F6B #91862F #2F9155
split-complementary
#2F3A91 #91552F #6B912F
monochromatic
#111535 #202863 #2F3A91 #3E4CBF #6B76CF

Accessibility & contrast

On white

9.84
#2F3A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2F3A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F3A91
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F3A91#FFFFFF#000000##FFFFFF
##2F3A911.009.842.149.84
#FFFFFF9.841.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004894
Deuteranopia (green-blind)
#003F8F
Tritanopia (blue-blind)
#004F5F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f3a91;
/* rgb */ color: rgb(47, 58, 145);
/* oklch */ color: oklch(39.4% 0.143 272.6);
Tailwind
colors: {
  custom: {
    50: '#7470b2',
    500: '#2f3a91',
    950: '#000000',
  },
}
SCSS
$custom: #2f3a91;
$custom-light: #7470b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f3a91",
  "rgb": {
    "r": 47,
    "g": 58,
    "b": 145
  },
  "hsl": {
    "h": 233.265,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39412,
    "c": 0.14273,
    "h": 272.6
  },
  "luminance": 0.05675
}

Semantic roles & 50–950 ramp

primary
#2F3A91
secondary
#B6AD65
accent
#CB4DDB
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2F3A91

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

Preview Lab → · Contrast checker → · Palette generator →

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