#2F2597#2F2597

#2F2597 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.176 H 277.0°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#2F2597
RGBrgb(47, 37, 151)
HSLhsl(245, 61%, 37%)
HSVhsv(245, 75%, 59%)
CMYKcmyk(68.9%, 75.5%, 0%, 40.8%)
CIE-LABlab(24.20, 40.41, -60.38)
CIE-LCHlch(24.20, 72.65, 303.79°)
OKLaboklab(36.4% 0.0215 -0.1744)
OKLCHoklch(36.4% 0.176 277)
XYZxyz(7.4180, 4.1612, 29.6844)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2597 #8D9725
analogous
#255497 #2F2597 #682597
triadic
#2F2597 #972F25 #25972F
tetradic
#2F2597 #972554 #8D9725 #259768
square
#2F2597 #972554 #8D9725 #259768
split-complementary
#2F2597 #976825 #549725
monochromatic
#100D35 #201966 #2F2597 #3E31C8 #695FD8

Accessibility & contrast

On white

11.46
#2F2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2F2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2597
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2597#FFFFFF#000000##FFFFFF
##2F25971.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2597;
/* rgb */ color: rgb(47, 37, 151);
/* oklch */ color: oklch(36.4% 0.176 277.0);
Tailwind
colors: {
  custom: {
    50: '#7762b7',
    500: '#2f2597',
    950: '#000000',
  },
}
SCSS
$custom: #2f2597;
$custom-light: #7762b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2597",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 245.263,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36403,
    "c": 0.17577,
    "h": 277
  },
  "luminance": 0.04162
}

Semantic roles & 50–950 ramp

primary
#2F2597
secondary
#B4BD5B
accent
#E444D6
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2597

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

Preview Lab → · Contrast checker → · Palette generator →

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