#2A338C#2A338C

#2A338C is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.3% C 0.146 H 272.6°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#2A338C
RGBrgb(42, 51, 140)
HSLhsl(234, 54%, 36%)
HSVhsv(234, 70%, 55%)
CMYKcmyk(70%, 63.6%, 0%, 45.1%)
CIE-LABlab(26.02, 27.17, -50.61)
CIE-LCHlch(26.02, 57.44, 298.23°)
OKLaboklab(37.31% 0.0067 -0.146)
OKLCHoklch(37.31% 0.146 272.6)
XYZxyz(6.8707, 4.7527, 25.3611)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A338C #8C832A
analogous
#2A648C #2A338C #522A8C
triadic
#2A338C #8C2A33 #338C2A
tetradic
#2A338C #8C2A64 #8C832A #2A8C52
square
#2A338C #8C2A64 #8C832A #2A8C52
split-complementary
#2A338C #8C522A #648C2A
monochromatic
#0E112E #1C225D #2A338C #3844BB #616BD0

Accessibility & contrast

On white

10.77
#2A338C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2A338C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A338C
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A338C#FFFFFF#000000##FFFFFF
##2A338C1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a338c;
/* rgb */ color: rgb(42, 51, 140);
/* oklch */ color: oklch(37.3% 0.146 272.6);
Tailwind
colors: {
  custom: {
    50: '#716aae',
    500: '#2a338c',
    950: '#000000',
  },
}
SCSS
$custom: #2a338c;
$custom-light: #716aae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a338c",
  "rgb": {
    "r": 42,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 234.49,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37307,
    "c": 0.14616,
    "h": 272.6
  },
  "luminance": 0.04753
}

Semantic roles & 50–950 ramp

primary
#2A338C
secondary
#B5AD5C
accent
#D04BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2A338C

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

Preview Lab → · Contrast checker → · Palette generator →

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