#2F259E#2F259E

#2F259E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.1% C 0.184 H 276.2°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#2F259E
RGBrgb(47, 37, 158)
HSLhsl(245, 62%, 38%)
HSVhsv(245, 77%, 62%)
CMYKcmyk(70.3%, 76.6%, 0%, 38%)
CIE-LABlab(24.94, 42.70, -63.44)
CIE-LCHlch(24.94, 76.47, 303.94°)
OKLaboklab(37.15% 0.0199 -0.1834)
OKLCHoklch(37.15% 0.184 276.2)
XYZxyz(8.0034, 4.3954, 32.7677)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F259E #949E25
analogous
#25579E #2F259E #6B259E
triadic
#2F259E #9E2F25 #259E2F
tetradic
#2F259E #9E2557 #949E25 #259E6B
square
#2F259E #9E2557 #949E25 #259E6B
split-complementary
#2F259E #9E6B25 #579E25
monochromatic
#110E3B #20196C #2F259E #3E31CF #6D63DA

Accessibility & contrast

On white

11.17
#2F259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F259E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F259E
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F259E#FFFFFF#000000##FFFFFF
##2F259E1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f259e;
/* rgb */ color: rgb(47, 37, 158);
/* oklch */ color: oklch(37.1% 0.184 276.2);
Tailwind
colors: {
  custom: {
    50: '#7962bc',
    500: '#2f259e',
    950: '#000000',
  },
}
SCSS
$custom: #2f259e;
$custom-light: #7962bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f259e",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 244.959,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37146,
    "c": 0.18447,
    "h": 276.2
  },
  "luminance": 0.04396
}

Semantic roles & 50–950 ramp

primary
#2F259E
secondary
#B8C05F
accent
#E543D8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F259E

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

Preview Lab → · Contrast checker → · Palette generator →

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