#2A3863#2A3863

#2A3863 is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.1% C 0.077 H 268.6°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#2A3863
RGBrgb(42, 56, 99)
HSLhsl(225, 40%, 28%)
HSVhsv(225, 58%, 39%)
CMYKcmyk(57.6%, 43.4%, 0%, 61.2%)
CIE-LABlab(24.39, 8.39, -27.24)
CIE-LCHlch(24.39, 28.50, 287.12°)
OKLaboklab(35.12% -0.0019 -0.0772)
OKLCHoklch(35.12% 0.077 268.6)
XYZxyz(4.6204, 4.2211, 12.3732)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3863 #63552A
analogous
#2A5563 #2A3863 #382A63
triadic
#2A3863 #632A38 #38632A
tetradic
#2A3863 #632A55 #63552A #2A6338
square
#2A3863 #632A55 #63552A #2A6338
split-complementary
#2A3863 #63382A #55632A
monochromatic
#090C15 #182038 #2A3863 #3C508E #526AB6

Accessibility & contrast

On white

11.39
#2A3863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A3863 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3863
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3863#FFFFFF#000000##FFFFFF
##2A38631.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#263D65
Deuteranopia (green-blind)
#203862
Tritanopia (blue-blind)
#0C4148
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a3863;
/* rgb */ color: rgb(42, 56, 99);
/* oklch */ color: oklch(35.1% 0.077 268.6);
Tailwind
colors: {
  custom: {
    50: '#686e8f',
    500: '#2a3863',
    950: '#000000',
  },
}
SCSS
$custom: #2a3863;
$custom-light: #686e8f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3863",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 99
  },
  "hsl": {
    "h": 225.263,
    "s": 40.426,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35115,
    "c": 0.07727,
    "h": 268.6
  },
  "luminance": 0.04221
}

Semantic roles & 50–950 ramp

primary
#2A3863
secondary
#958553
accent
#B358D0
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06070C
muted
#7A7A7D

Preview Lab

Preview with #2A3863

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

Preview Lab → · Contrast checker → · Palette generator →

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