#2F2589#2F2589

#2F2589 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.158 H 278.9°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#2F2589
RGBrgb(47, 37, 137)
HSLhsl(246, 57%, 34%)
HSVhsv(246, 73%, 54%)
CMYKcmyk(65.7%, 73%, 0%, 46.3%)
CIE-LABlab(22.77, 35.75, -54.05)
CIE-LCHlch(22.77, 64.81, 303.48°)
OKLaboklab(34.96% 0.0244 -0.156)
OKLCHoklch(34.96% 0.158 278.9)
XYZxyz(6.3478, 3.7331, 24.0481)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2589 #7F8925
analogous
#254D89 #2F2589 #612589
triadic
#2F2589 #892F25 #25892F
tetradic
#2F2589 #89254D #7F8925 #258961
square
#2F2589 #89254D #7F8925 #258961
split-complementary
#2F2589 #896125 #4D8925
monochromatic
#0E0B29 #1E1859 #2F2589 #4032B9 #6357D2

Accessibility & contrast

On white

12.02
#2F2589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2F2589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2589
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2589#FFFFFF#000000##FFFFFF
##2F25891.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2f2589;
/* rgb */ color: rgb(47, 37, 137);
/* oklch */ color: oklch(35.0% 0.158 278.9);
Tailwind
colors: {
  custom: {
    50: '#7461ac',
    500: '#2f2589',
    950: '#000000',
  },
}
SCSS
$custom: #2f2589;
$custom-light: #7461ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2589",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 137
  },
  "hsl": {
    "h": 246,
    "s": 57.471,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34957,
    "c": 0.15787,
    "h": 278.9
  },
  "luminance": 0.03734
}

Semantic roles & 50–950 ramp

primary
#2F2589
secondary
#ACB654
accent
#E147D1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2589

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

Preview Lab → · Contrast checker → · Palette generator →

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