#2A3FAF#2A3FAF

#2A3FAF is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.8% C 0.179 H 269.0°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#2A3FAF
RGBrgb(42, 63, 175)
HSLhsl(231, 61%, 43%)
HSVhsv(231, 76%, 69%)
CMYKcmyk(76%, 64%, 0%, 31.4%)
CIE-LABlab(32.13, 32.22, -61.89)
CIE-LCHlch(32.13, 69.77, 297.51°)
OKLaboklab(42.75% -0.0032 -0.1789)
OKLCHoklch(42.75% 0.179 269)
XYZxyz(10.4675, 7.1413, 41.3759)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3FAF #AF9A2A
analogous
#2A82AF #2A3FAF #572AAF
triadic
#2A3FAF #AF2A3F #3FAF2A
tetradic
#2A3FAF #AF2A82 #AF9A2A #2AAF57
square
#2A3FAF #AF2A82 #AF9A2A #2AAF57
split-complementary
#2A3FAF #AF572A #82AF2A
monochromatic
#121B4C #1E2D7E #2A3FAF #445AD2 #7586DE

Accessibility & contrast

On white

8.65
#2A3FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2A3FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3FAF
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3FAF#FFFFFF#000000##FFFFFF
##2A3FAF1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a3faf;
/* rgb */ color: rgb(42, 63, 175);
/* oklch */ color: oklch(42.8% 0.179 269.0);
Tailwind
colors: {
  custom: {
    50: '#7874c8',
    500: '#2a3faf',
    950: '#000000',
  },
}
SCSS
$custom: #2a3faf;
$custom-light: #7874c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3faf",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 175
  },
  "hsl": {
    "h": 230.526,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42754,
    "c": 0.17898,
    "h": 269
  },
  "luminance": 0.07142
}

Semantic roles & 50–950 ramp

primary
#2A3FAF
secondary
#C6B86F
accent
#CB43E4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A3FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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