#2F259C#2F259C

#2F259C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.9% C 0.182 H 276.4°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#2F259C
RGBrgb(47, 37, 156)
HSLhsl(245, 62%, 38%)
HSVhsv(245, 76%, 61%)
CMYKcmyk(69.9%, 76.3%, 0%, 38.8%)
CIE-LABlab(24.72, 42.05, -62.57)
CIE-LCHlch(24.72, 75.39, 303.90°)
OKLaboklab(36.93% 0.0204 -0.1808)
OKLCHoklch(36.93% 0.182 276.4)
XYZxyz(7.8326, 4.3271, 31.8685)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F259C #929C25
analogous
#25569C #2F259C #6A259C
triadic
#2F259C #9C2F25 #259C2F
tetradic
#2F259C #9C2556 #929C25 #259C6A
square
#2F259C #9C2556 #929C25 #259C6A
split-complementary
#2F259C #9C6A25 #569C25
monochromatic
#110E39 #20196B #2F259C #3E31CD #6C62DA

Accessibility & contrast

On white

11.26
#2F259C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F259C
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F259C#FFFFFF#000000##FFFFFF
##2F259C1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409F
Deuteranopia (green-blind)
#00359A
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f259c;
/* rgb */ color: rgb(47, 37, 156);
/* oklch */ color: oklch(36.9% 0.182 276.4);
Tailwind
colors: {
  custom: {
    50: '#7862ba',
    500: '#2f259c',
    950: '#000000',
  },
}
SCSS
$custom: #2f259c;
$custom-light: #7862ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f259c",
  "rgb": {
    "r": 47,
    "g": 37,
    "b": 156
  },
  "hsl": {
    "h": 245.042,
    "s": 61.658,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36933,
    "c": 0.18199,
    "h": 276.4
  },
  "luminance": 0.04328
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F259C

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

Preview Lab → · Contrast checker → · Palette generator →

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