#2F259A#2F259A

#2F259A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.180 H 276.7°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#2F259A
RGBrgb(47, 37, 154)
HSLhsl(245, 61%, 37%)
HSVhsv(245, 76%, 60%)
CMYKcmyk(69.5%, 76%, 0%, 39.6%)
CIE-LABlab(24.51, 41.39, -61.70)
CIE-LCHlch(24.51, 74.30, 303.86°)
OKLaboklab(36.72% 0.0208 -0.1783)
OKLCHoklch(36.72% 0.18 276.7)
XYZxyz(7.6647, 4.2599, 30.9839)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F259A #909A25
analogous
#25569A #2F259A #69259A
triadic
#2F259A #9A2F25 #259A2F
tetradic
#2F259A #9A2556 #909A25 #259A69
square
#2F259A #9A2556 #909A25 #259A69
split-complementary
#2F259A #9A6925 #569A25
monochromatic
#110D37 #201969 #2F259A #3E31CB #6B60D9

Accessibility & contrast

On white

11.34
#2F259A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F259A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F259A
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F259A#FFFFFF#000000##FFFFFF
##2F259A1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003598
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f259a;
/* rgb */ color: rgb(47, 37, 154);
/* oklch */ color: oklch(36.7% 0.180 276.7);
Tailwind
colors: {
  custom: {
    50: '#7862b9',
    500: '#2f259a',
    950: '#000000',
  },
}
SCSS
$custom: #2f259a;
$custom-light: #7862b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f259a",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 154
  },
  "hsl": {
    "h": 245.128,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3672,
    "c": 0.17951,
    "h": 276.7
  },
  "luminance": 0.04261
}

Semantic roles & 50–950 ramp

primary
#2F259A
secondary
#B6BE5D
accent
#E443D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F259A

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

Preview Lab → · Contrast checker → · Palette generator →

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