#2F2585#2F2585

#2F2585 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.153 H 279.5°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2F2585
RGBrgb(47, 37, 133)
HSLhsl(246, 56%, 33%)
HSVhsv(246, 72%, 52%)
CMYKcmyk(64.7%, 72.2%, 0%, 47.8%)
CIE-LABlab(22.37, 34.41, -52.19)
CIE-LCHlch(22.37, 62.51, 303.39°)
OKLaboklab(34.56% 0.0251 -0.1505)
OKLCHoklch(34.56% 0.153 279.5)
XYZxyz(6.0661, 3.6205, 22.5649)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2585 #7B8525
analogous
#254B85 #2F2585 #5F2585
triadic
#2F2585 #852F25 #25852F
tetradic
#2F2585 #85254B #7B8525 #25855F
square
#2F2585 #85254B #7B8525 #25855F
split-complementary
#2F2585 #855F25 #4B8525
monochromatic
#0D0A25 #1E1855 #2F2585 #4032B5 #6255D0

Accessibility & contrast

On white

12.18
#2F2585 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2F2585 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2585
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2585#FFFFFF#000000##FFFFFF
##2F25851.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#003F52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f2585;
/* rgb */ color: rgb(47, 37, 133);
/* oklch */ color: oklch(34.6% 0.153 279.5);
Tailwind
colors: {
  custom: {
    50: '#7361a9',
    500: '#2f2585',
    950: '#000000',
  },
}
SCSS
$custom: #2f2585;
$custom-light: #7361a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2585",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 133
  },
  "hsl": {
    "h": 246.25,
    "s": 56.471,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34556,
    "c": 0.15262,
    "h": 279.5
  },
  "luminance": 0.03621
}

Semantic roles & 50–950 ramp

primary
#2F2585
secondary
#AAB452
accent
#E048D0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2F2585

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

Preview Lab → · Contrast checker → · Palette generator →

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