#2A3E8F#2A3E8F

#2A3E8F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.8% C 0.136 H 268.9°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#2A3E8F
RGBrgb(42, 62, 143)
HSLhsl(228, 55%, 36%)
HSVhsv(228, 71%, 56%)
CMYKcmyk(70.6%, 56.6%, 0%, 43.9%)
CIE-LABlab(29.21, 20.86, -47.27)
CIE-LCHlch(29.21, 51.67, 293.81°)
OKLaboklab(39.76% -0.0026 -0.136)
OKLCHoklch(39.76% 0.136 268.9)
XYZxyz(7.6337, 5.9199, 26.7216)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3E8F #8F7B2A
analogous
#2A718F #2A3E8F #492A8F
triadic
#2A3E8F #8F2A3E #3E8F2A
tetradic
#2A3E8F #8F2A71 #8F7B2A #2A8F49
square
#2A3E8F #8F2A71 #8F7B2A #2A8F49
split-complementary
#2A3E8F #8F492A #718F2A
monochromatic
#0E1530 #1C2960 #2A3E8F #3853BE #6278D1

Accessibility & contrast

On white

9.61
#2A3E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2A3E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3E8F
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3E8F#FFFFFF#000000##FFFFFF
##2A3E8F1.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a3e8f;
/* rgb */ color: rgb(42, 62, 143);
/* oklch */ color: oklch(39.8% 0.136 268.9);
Tailwind
colors: {
  custom: {
    50: '#7172b0',
    500: '#2a3e8f',
    950: '#000000',
  },
}
SCSS
$custom: #2a3e8f;
$custom-light: #7172b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3e8f",
  "rgb": {
    "r": 42,
    "g": 62,
    "b": 143
  },
  "hsl": {
    "h": 228.119,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.39759,
    "c": 0.13607,
    "h": 268.9
  },
  "luminance": 0.05921
}

Semantic roles & 50–950 ramp

primary
#2A3E8F
secondary
#B7A55E
accent
#C14ADE
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #2A3E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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