#2A195E#2A195E

#2A195E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.116 H 288.0°. Best body text is #FFFFFF at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#2A195E
RGBrgb(42, 25, 94)
HSLhsl(255, 58%, 23%)
HSVhsv(255, 73%, 37%)
CMYKcmyk(55.3%, 73.4%, 0%, 63.1%)
CIE-LABlab(15.46, 27.86, -38.33)
CIE-LCHlch(15.46, 47.38, 306.02°)
OKLaboklab(28.34% 0.0357 -0.11)
OKLCHoklch(28.34% 0.116 288)
XYZxyz(3.3223, 1.9955, 10.7976)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A195E #4D5E19
analogous
#192A5E #2A195E #4C195E
triadic
#2A195E #5E2A19 #195E2A
tetradic
#2A195E #5E192A #4D5E19 #195E4C
square
#2A195E #5E192A #4D5E19 #195E4C
split-complementary
#2A195E #5E4C19 #2A5E19
monochromatic
#0B0618 #140C2E #2A195E #40268E #5533BF

Accessibility & contrast

On white

15.01
#2A195E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A195E
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A195E#FFFFFF#000000##FFFFFF
##2A195E1.0015.011.4015.01
#FFFFFF15.011.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#00255D
Tritanopia (blue-blind)
#172B39
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a195e;
/* rgb */ color: rgb(42, 25, 94);
/* oklch */ color: oklch(28.3% 0.116 288.0);
Tailwind
colors: {
  custom: {
    50: '#6a578c',
    500: '#2a195e',
    950: '#000000',
  },
}
SCSS
$custom: #2a195e;
$custom-light: #6a578c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a195e",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 94
  },
  "hsl": {
    "h": 254.783,
    "s": 57.983,
    "l": 23.333
  },
  "oklch": {
    "l": 0.28336,
    "c": 0.11569,
    "h": 288
  },
  "luminance": 0.01996
}

Semantic roles & 50–950 ramp

primary
#2A195E
secondary
#7F943F
accent
#E147BB
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A195E

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

Preview Lab → · Contrast checker → · Palette generator →

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