#2D228B#2D228B

#2D228B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.164 H 278.1°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#2D228B
RGBrgb(45, 34, 139)
HSLhsl(246, 61%, 34%)
HSVhsv(246, 76%, 55%)
CMYKcmyk(67.6%, 75.5%, 0%, 45.5%)
CIE-LABlab(22.18, 37.92, -56.28)
CIE-LCHlch(22.18, 67.86, 303.97°)
OKLaboklab(34.56% 0.0232 -0.1625)
OKLCHoklch(34.56% 0.164 278.1)
XYZxyz(6.3129, 3.5655, 24.7766)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D228B #808B22
analogous
#224C8B #2D228B #62228B
triadic
#2D228B #8B2D22 #228B2D
tetradic
#2D228B #8B224C #808B22 #228B62
square
#2D228B #8B224C #808B22 #228B62
split-complementary
#2D228B #8B6222 #4C8B22
monochromatic
#0D0A29 #1D165A #2D228B #3D2EBC #6053D5

Accessibility & contrast

On white

12.26
#2D228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2D228B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D228B
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D228B#FFFFFF#000000##FFFFFF
##2D228B1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2d228b;
/* rgb */ color: rgb(45, 34, 139);
/* oklch */ color: oklch(34.6% 0.164 278.1);
Tailwind
colors: {
  custom: {
    50: '#745fae',
    500: '#2d228b',
    950: '#000000',
  },
}
SCSS
$custom: #2d228b;
$custom-light: #745fae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d228b",
  "rgb": {
    "r": 45,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 246.286,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34558,
    "c": 0.16417,
    "h": 278.1
  },
  "luminance": 0.03566
}

Semantic roles & 50–950 ramp

primary
#2D228B
secondary
#AEB850
accent
#E444D3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D228B

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

Preview Lab → · Contrast checker → · Palette generator →

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