#2A388B#2A388B

#2A388B is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.138 H 271.1°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#2A388B
RGBrgb(42, 56, 139)
HSLhsl(231, 54%, 35%)
HSVhsv(231, 70%, 55%)
CMYKcmyk(69.8%, 59.7%, 0%, 45.5%)
CIE-LABlab(27.25, 23.42, -47.98)
CIE-LCHlch(27.25, 53.39, 296.02°)
OKLaboklab(38.2% 0.0025 -0.1382)
OKLCHoklch(38.2% 0.138 271.1)
XYZxyz(7.0276, 5.1840, 25.0513)
Luminance0.0519 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A388B #8B7D2A
analogous
#2A688B #2A388B #4C2A8B
triadic
#2A388B #8B2A38 #388B2A
tetradic
#2A388B #8B2A68 #8B7D2A #2A8B4C
square
#2A388B #8B2A68 #8B7D2A #2A8B4C
split-complementary
#2A388B #8B4C2A #688B2A
monochromatic
#0E122D #1C255C #2A388B #384BBA #6070CF

Accessibility & contrast

On white

10.31
#2A388B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2A388B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A388B
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A388B#FFFFFF#000000##FFFFFF
##2A388B1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2a388b;
/* rgb */ color: rgb(42, 56, 139);
/* oklch */ color: oklch(38.2% 0.138 271.1);
Tailwind
colors: {
  custom: {
    50: '#706eae',
    500: '#2a388b',
    950: '#000000',
  },
}
SCSS
$custom: #2a388b;
$custom-light: #706eae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a388b",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 139
  },
  "hsl": {
    "h": 231.34,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38196,
    "c": 0.13824,
    "h": 271.1
  },
  "luminance": 0.05185
}

Semantic roles & 50–950 ramp

primary
#2A388B
secondary
#B5A85C
accent
#C84BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A388B

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

Preview Lab → · Contrast checker → · Palette generator →

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