#2F259B#2F259B

#2F259B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.181 H 276.5°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#2F259B
RGBrgb(47, 37, 155)
HSLhsl(245, 61%, 38%)
HSVhsv(245, 76%, 61%)
CMYKcmyk(69.7%, 76.1%, 0%, 39.2%)
CIE-LABlab(24.62, 41.72, -62.14)
CIE-LCHlch(24.62, 74.85, 303.88°)
OKLaboklab(36.83% 0.0206 -0.1796)
OKLCHoklch(36.83% 0.181 276.5)
XYZxyz(7.7483, 4.2933, 31.4244)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F259B #919B25
analogous
#25569B #2F259B #6A259B
triadic
#2F259B #9B2F25 #259B2F
tetradic
#2F259B #9B2556 #919B25 #259B6A
square
#2F259B #9B2556 #919B25 #259B6A
split-complementary
#2F259B #9B6A25 #569B25
monochromatic
#110D38 #20196A #2F259B #3E31CC #6B61D9

Accessibility & contrast

On white

11.30
#2F259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2F259B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F259B
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F259B#FFFFFF#000000##FFFFFF
##2F259B1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f259b;
/* rgb */ color: rgb(47, 37, 155);
/* oklch */ color: oklch(36.8% 0.181 276.5);
Tailwind
colors: {
  custom: {
    50: '#7862ba',
    500: '#2f259b',
    950: '#000000',
  },
}
SCSS
$custom: #2f259b;
$custom-light: #7862ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f259b",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 245.085,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36826,
    "c": 0.18076,
    "h": 276.5
  },
  "luminance": 0.04294
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F259B

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

Preview Lab → · Contrast checker → · Palette generator →

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