#2F2495#2F2495

#2F2495 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.174 H 277.4°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#2F2495
RGBrgb(47, 36, 149)
HSLhsl(246, 61%, 36%)
HSVhsv(246, 76%, 58%)
CMYKcmyk(68.5%, 75.8%, 0%, 41.6%)
CIE-LABlab(23.79, 40.32, -59.82)
CIE-LCHlch(23.79, 72.14, 303.98°)
OKLaboklab(36.05% 0.0225 -0.1728)
OKLCHoklch(36.05% 0.174 277.4)
XYZxyz(7.2262, 4.0354, 28.8260)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2495 #8A9524
analogous
#245295 #2F2495 #682495
triadic
#2F2495 #952F24 #24952F
tetradic
#2F2495 #952452 #8A9524 #249568
square
#2F2495 #952452 #8A9524 #249568
split-complementary
#2F2495 #956824 #529524
monochromatic
#100C32 #1F1864 #2F2495 #3F30C6 #685CD8

Accessibility & contrast

On white

11.62
#2F2495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F2495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2495
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2495#FFFFFF#000000##FFFFFF
##2F24951.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2495;
/* rgb */ color: rgb(47, 36, 149);
/* oklch */ color: oklch(36.1% 0.174 277.4);
Tailwind
colors: {
  custom: {
    50: '#7761b5',
    500: '#2f2495',
    950: '#000000',
  },
}
SCSS
$custom: #2f2495;
$custom-light: #7761b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2495",
  "rgb": {
    "r": 47,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 245.841,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36051,
    "c": 0.17428,
    "h": 277.4
  },
  "luminance": 0.04036
}

Semantic roles & 50–950 ramp

primary
#2F2495
secondary
#B3BC59
accent
#E444D5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #2F2495

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

Preview Lab → · Contrast checker → · Palette generator →

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