#2A3F8E#2A3F8E

#2A3F8E is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.9% C 0.133 H 268.5°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#2A3F8E
RGBrgb(42, 63, 142)
HSLhsl(227, 54%, 36%)
HSVhsv(227, 70%, 56%)
CMYKcmyk(70.4%, 55.6%, 0%, 44.3%)
CIE-LABlab(29.41, 19.79, -46.33)
CIE-LCHlch(29.41, 50.38, 293.14°)
OKLaboklab(39.89% -0.0035 -0.1333)
OKLCHoklch(39.89% 0.133 268.5)
XYZxyz(7.6132, 5.9995, 26.3427)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F8E #8E792A
analogous
#2A718E #2A3F8E #472A8E
triadic
#2A3F8E #8E2A3F #3F8E2A
tetradic
#2A3F8E #8E2A71 #8E792A #2A8E47
square
#2A3F8E #8E2A71 #8E792A #2A8E47
split-complementary
#2A3F8E #8E472A #718E2A
monochromatic
#0E1530 #1C2A5F #2A3F8E #3854BD #6279D1

Accessibility & contrast

On white

9.55
#2A3F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A3F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F8E
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F8E#FFFFFF#000000##FFFFFF
##2A3F8E1.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014A91
Deuteranopia (green-blind)
#00418C
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a3f8e;
/* rgb */ color: rgb(42, 63, 142);
/* oklch */ color: oklch(39.9% 0.133 268.5);
Tailwind
colors: {
  custom: {
    50: '#7173b0',
    500: '#2a3f8e',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f8e;
$custom-light: #7173b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f8e",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 142
  },
  "hsl": {
    "h": 227.4,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.39886,
    "c": 0.13332,
    "h": 268.5
  },
  "luminance": 0.06
}

Semantic roles & 50–950 ramp

primary
#2A3F8E
secondary
#B6A45D
accent
#BF4ADE
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A3F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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