#2A388C#2A388C

#2A388C is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.3% C 0.140 H 271.0°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#2A388C
RGBrgb(42, 56, 140)
HSLhsl(231, 54%, 36%)
HSVhsv(231, 70%, 55%)
CMYKcmyk(70%, 60%, 0%, 45.1%)
CIE-LABlab(27.33, 23.80, -48.46)
CIE-LCHlch(27.33, 53.99, 296.16°)
OKLaboklab(38.28% 0.0026 -0.1396)
OKLCHoklch(38.28% 0.14 271)
XYZxyz(7.1010, 5.2134, 25.4379)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A388C #8C7E2A
analogous
#2A698C #2A388C #4D2A8C
triadic
#2A388C #8C2A38 #388C2A
tetradic
#2A388C #8C2A69 #8C7E2A #2A8C4D
square
#2A388C #8C2A69 #8C7E2A #2A8C4D
split-complementary
#2A388C #8C4D2A #698C2A
monochromatic
#0E122E #1C255D #2A388C #384BBB #6171D0

Accessibility & contrast

On white

10.28
#2A388C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A388C
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A388C#FFFFFF#000000##FFFFFF
##2A388C1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a388c;
/* rgb */ color: rgb(42, 56, 140);
/* oklch */ color: oklch(38.3% 0.140 271.0);
Tailwind
colors: {
  custom: {
    50: '#716eae',
    500: '#2a388c',
    950: '#000000',
  },
}
SCSS
$custom: #2a388c;
$custom-light: #716eae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a388c",
  "rgb": {
    "r": 42,
    "g": 56,
    "b": 140
  },
  "hsl": {
    "h": 231.429,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.38282,
    "c": 0.13967,
    "h": 271
  },
  "luminance": 0.05214
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A388C

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

Preview Lab → · Contrast checker → · Palette generator →

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