#2A3094#2A3094

#2A3094 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.161 H 273.0°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#2A3094
RGBrgb(42, 48, 148)
HSLhsl(237, 56%, 37%)
HSVhsv(237, 72%, 58%)
CMYKcmyk(71.6%, 67.6%, 0%, 42%)
CIE-LABlab(25.99, 32.07, -55.60)
CIE-LCHlch(25.99, 64.18, 299.98°)
OKLaboklab(37.51% 0.0084 -0.1606)
OKLCHoklch(37.51% 0.161 273)
XYZxyz(7.3553, 4.7436, 28.5392)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3094 #948E2A
analogous
#2A6594 #2A3094 #592A94
triadic
#2A3094 #942A30 #30942A
tetradic
#2A3094 #942A65 #948E2A #2A9459
square
#2A3094 #942A65 #948E2A #2A9459
split-complementary
#2A3094 #94592A #65942A
monochromatic
#0F1135 #1C2164 #2A3094 #383FC4 #656BD3

Accessibility & contrast

On white

10.78
#2A3094 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2A3094 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3094
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3094#FFFFFF#000000##FFFFFF
##2A30941.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004297
Deuteranopia (green-blind)
#003992
Tritanopia (blue-blind)
#004A5D
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a3094;
/* rgb */ color: rgb(42, 48, 148);
/* oklch */ color: oklch(37.5% 0.161 273.0);
Tailwind
colors: {
  custom: {
    50: '#7368b4',
    500: '#2a3094',
    950: '#000000',
  },
}
SCSS
$custom: #2a3094;
$custom-light: #7368b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3094",
  "rgb": {
    "r": 42,
    "g": 48,
    "b": 148
  },
  "hsl": {
    "h": 236.604,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.3751,
    "c": 0.16085,
    "h": 273
  },
  "luminance": 0.04744
}

Semantic roles & 50–950 ramp

primary
#2A3094
secondary
#B9B460
accent
#D749DF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A3094

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

Preview Lab → · Contrast checker → · Palette generator →

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