#2A338A#2A338A

#2A338A is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.143 H 272.7°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2A338A
RGBrgb(42, 51, 138)
HSLhsl(234, 53%, 35%)
HSVhsv(234, 70%, 54%)
CMYKcmyk(69.6%, 63%, 0%, 45.9%)
CIE-LABlab(25.85, 26.43, -49.65)
CIE-LCHlch(25.85, 56.25, 298.03°)
OKLaboklab(37.13% 0.0068 -0.1432)
OKLCHoklch(37.13% 0.143 272.7)
XYZxyz(6.7246, 4.6942, 24.5915)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A338A #8A812A
analogous
#2A638A #2A338A #512A8A
triadic
#2A338A #8A2A33 #338A2A
tetradic
#2A338A #8A2A63 #8A812A #2A8A51
square
#2A338A #8A2A63 #8A812A #2A8A51
split-complementary
#2A338A #8A512A #638A2A
monochromatic
#0D102C #1C225B #2A338A #3844B9 #606ACF

Accessibility & contrast

On white

10.83
#2A338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2A338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A338A
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A338A#FFFFFF#000000##FFFFFF
##2A338A1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#004959
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2a338a;
/* rgb */ color: rgb(42, 51, 138);
/* oklch */ color: oklch(37.1% 0.143 272.7);
Tailwind
colors: {
  custom: {
    50: '#716aad',
    500: '#2a338a',
    950: '#000000',
  },
}
SCSS
$custom: #2a338a;
$custom-light: #716aad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a338a",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 234.375,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37126,
    "c": 0.14334,
    "h": 272.7
  },
  "luminance": 0.04695
}

Semantic roles & 50–950 ramp

primary
#2A338A
secondary
#B4AC5B
accent
#CF4BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A338A

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

Preview Lab → · Contrast checker → · Palette generator →

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