#2A275E#2A275E

#2A275E is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.9% C 0.095 H 281.7°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#2A275E
RGBrgb(42, 39, 94)
HSLhsl(243, 41%, 26%)
HSVhsv(243, 59%, 37%)
CMYKcmyk(55.3%, 58.5%, 0%, 63.1%)
CIE-LABlab(19.02, 18.52, -32.56)
CIE-LCHlch(19.02, 37.45, 299.63°)
OKLaboklab(30.94% 0.0194 -0.093)
OKLCHoklch(30.94% 0.095 281.7)
XYZxyz(3.7001, 2.7512, 10.9236)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A275E #5B5E27
analogous
#273F5E #2A275E #45275E
triadic
#2A275E #5E2A27 #275E2A
tetradic
#2A275E #5E273F #5B5E27 #275E45
square
#2A275E #5E273F #5B5E27 #275E45
split-complementary
#2A275E #5E4527 #3F5E27
monochromatic
#0A0916 #171533 #2A275E #3D3989 #514BB4

Accessibility & contrast

On white

13.55
#2A275E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2A275E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A275E
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A275E#FFFFFF#000000##FFFFFF
##2A275E1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063060
Deuteranopia (green-blind)
#012C5D
Tritanopia (blue-blind)
#15333E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a275e;
/* rgb */ color: rgb(42, 39, 94);
/* oklch */ color: oklch(30.9% 0.095 281.7);
Tailwind
colors: {
  custom: {
    50: '#68618c',
    500: '#2a275e',
    950: '#000000',
  },
}
SCSS
$custom: #2a275e;
$custom-light: #68618c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a275e",
  "rgb": {
    "r": 42,
    "g": 39,
    "b": 94
  },
  "hsl": {
    "h": 243.273,
    "s": 41.353,
    "l": 26.078
  },
  "oklch": {
    "l": 0.30935,
    "c": 0.09502,
    "h": 281.7
  },
  "luminance": 0.02751
}

Semantic roles & 50–950 ramp

primary
#2A275E
secondary
#8D9150
accent
#D157CA
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06050C
muted
#7A797D

Preview Lab

Preview with #2A275E

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

Preview Lab → · Contrast checker → · Palette generator →

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