#2A195C#2A195C

#2A195C is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.113 H 288.6°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#2A195C
RGBrgb(42, 25, 92)
HSLhsl(255, 57%, 23%)
HSVhsv(255, 73%, 36%)
CMYKcmyk(54.3%, 72.8%, 0%, 63.9%)
CIE-LABlab(15.28, 27.20, -37.30)
CIE-LCHlch(15.28, 46.16, 306.11°)
OKLaboklab(28.14% 0.0361 -0.107)
OKLCHoklch(28.14% 0.113 288.6)
XYZxyz(3.2337, 1.9601, 10.3311)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A195C #4B5C19
analogous
#19295C #2A195C #4B195C
triadic
#2A195C #5C2A19 #195C2A
tetradic
#2A195C #5C1929 #4B5C19 #195C4B
square
#2A195C #5C1929 #4B5C19 #195C4B
split-complementary
#2A195C #5C4B19 #295C19
monochromatic
#0B0718 #140C2C #2A195C #40268C #5633BC

Accessibility & contrast

On white

15.09
#2A195C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2A195C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A195C
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A195C#FFFFFF#000000##FFFFFF
##2A195C1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#00255B
Tritanopia (blue-blind)
#182A38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a195c;
/* rgb */ color: rgb(42, 25, 92);
/* oklch */ color: oklch(28.1% 0.113 288.6);
Tailwind
colors: {
  custom: {
    50: '#69578b',
    500: '#2a195c',
    950: '#000000',
  },
}
SCSS
$custom: #2a195c;
$custom-light: #69578b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a195c",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 92
  },
  "hsl": {
    "h": 255.224,
    "s": 57.265,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28143,
    "c": 0.11292,
    "h": 288.6
  },
  "luminance": 0.0196
}

Semantic roles & 50–950 ramp

primary
#2A195C
secondary
#7D923F
accent
#E147BA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A195C

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

Preview Lab → · Contrast checker → · Palette generator →

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