#2A3A94#2A3A94

#2A3A94 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.4% C 0.148 H 270.4°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#2A3A94
RGBrgb(42, 58, 148)
HSLhsl(231, 56%, 37%)
HSVhsv(231, 72%, 58%)
CMYKcmyk(71.6%, 60.8%, 0%, 42%)
CIE-LABlab(28.53, 25.46, -51.45)
CIE-LCHlch(28.53, 57.41, 296.33°)
OKLaboklab(39.38% 0.0009 -0.1484)
OKLCHoklch(39.38% 0.148 270.4)
XYZxyz(7.8114, 5.6557, 28.6912)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A94 #94842A
analogous
#2A6F94 #2A3A94 #4F2A94
triadic
#2A3A94 #942A3A #3A942A
tetradic
#2A3A94 #942A6F #94842A #2A944F
square
#2A3A94 #942A6F #94842A #2A944F
split-complementary
#2A3A94 #944F2A #6F942A
monochromatic
#0F1535 #1C2764 #2A3A94 #384DC4 #6576D3

Accessibility & contrast

On white

9.85
#2A3A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2A3A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A94
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A94#FFFFFF#000000##FFFFFF
##2A3A941.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004897
Deuteranopia (green-blind)
#003F92
Tritanopia (blue-blind)
#005161
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a3a94;
/* rgb */ color: rgb(42, 58, 148);
/* oklch */ color: oklch(39.4% 0.148 270.4);
Tailwind
colors: {
  custom: {
    50: '#7270b4',
    500: '#2a3a94',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a94;
$custom-light: #7270b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a94",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 148
  },
  "hsl": {
    "h": 230.943,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.39375,
    "c": 0.1484,
    "h": 270.4
  },
  "luminance": 0.05656
}

Semantic roles & 50–950 ramp

primary
#2A3A94
secondary
#B9AC60
accent
#C849DF
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2A3A94

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

Preview Lab → · Contrast checker → · Palette generator →

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