#2F259D#2F259D

#2F259D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.183 H 276.3°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2F259D
RGBrgb(47, 37, 157)
HSLhsl(245, 62%, 38%)
HSVhsv(245, 76%, 62%)
CMYKcmyk(70.1%, 76.4%, 0%, 38.4%)
CIE-LABlab(24.83, 42.37, -63.01)
CIE-LCHlch(24.83, 75.93, 303.92°)
OKLaboklab(37.04% 0.0202 -0.1821)
OKLCHoklch(37.04% 0.183 276.3)
XYZxyz(7.9177, 4.3611, 32.3163)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F259D #939D25
analogous
#25579D #2F259D #6B259D
triadic
#2F259D #9D2F25 #259D2F
tetradic
#2F259D #9D2557 #939D25 #259D6B
square
#2F259D #9D2557 #939D25 #259D6B
split-complementary
#2F259D #9D6B25 #579D25
monochromatic
#110E3A #20196B #2F259D #3E31CE #6C62DA

Accessibility & contrast

On white

11.22
#2F259D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F259D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F259D
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F259D#FFFFFF#000000##FFFFFF
##2F259D1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#00369B
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f259d;
/* rgb */ color: rgb(47, 37, 157);
/* oklch */ color: oklch(37.0% 0.183 276.3);
Tailwind
colors: {
  custom: {
    50: '#7862bb',
    500: '#2f259d',
    950: '#000000',
  },
}
SCSS
$custom: #2f259d;
$custom-light: #7862bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f259d",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 157
  },
  "hsl": {
    "h": 245,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37039,
    "c": 0.18323,
    "h": 276.3
  },
  "luminance": 0.04362
}

Semantic roles & 50–950 ramp

primary
#2F259D
secondary
#B7BF5E
accent
#E543D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F259D

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

Preview Lab → · Contrast checker → · Palette generator →

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