#2A195F#2A195F

#2A195F is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.117 H 287.7°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#2A195F
RGBrgb(42, 25, 95)
HSLhsl(255, 58%, 24%)
HSVhsv(255, 74%, 37%)
CMYKcmyk(55.8%, 73.7%, 0%, 62.7%)
CIE-LABlab(15.56, 28.19, -38.84)
CIE-LCHlch(15.56, 47.99, 305.97°)
OKLaboklab(28.43% 0.0355 -0.1115)
OKLCHoklch(28.43% 0.117 287.7)
XYZxyz(3.3674, 2.0136, 11.0355)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A195F #4E5F19
analogous
#192B5F #2A195F #4D195F
triadic
#2A195F #5F2A19 #195F2A
tetradic
#2A195F #5F192B #4E5F19 #195F4D
square
#2A195F #5F192B #4E5F19 #195F4D
split-complementary
#2A195F #5F4D19 #2B5F19
monochromatic
#0B0618 #150C2F #2A195F #3F268F #5532C0

Accessibility & contrast

On white

14.97
#2A195F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2A195F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A195F
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A195F#FFFFFF#000000##FFFFFF
##2A195F1.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00255E
Tritanopia (blue-blind)
#162B39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a195f;
/* rgb */ color: rgb(42, 25, 95);
/* oklch */ color: oklch(28.4% 0.117 287.7);
Tailwind
colors: {
  custom: {
    50: '#6a578d',
    500: '#2a195f',
    950: '#000000',
  },
}
SCSS
$custom: #2a195f;
$custom-light: #6a578d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a195f",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 95
  },
  "hsl": {
    "h": 254.571,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28433,
    "c": 0.11706,
    "h": 287.7
  },
  "luminance": 0.02014
}

Semantic roles & 50–950 ramp

primary
#2A195F
secondary
#80953F
accent
#E246BC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A195F

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

Preview Lab → · Contrast checker → · Palette generator →

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