#2D267D#2D267D

#2D267D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.141 H 279.3°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#2D267D
RGBrgb(45, 38, 125)
HSLhsl(245, 53%, 32%)
HSVhsv(245, 70%, 49%)
CMYKcmyk(64%, 69.6%, 0%, 51%)
CIE-LABlab(21.67, 30.74, -48.31)
CIE-LCHlch(21.67, 57.26, 302.47°)
OKLaboklab(33.77% 0.0228 -0.1392)
OKLCHoklch(33.77% 0.141 279.3)
XYZxyz(5.4758, 3.4244, 19.7705)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D267D #767D26
analogous
#264A7D #2D267D #59267D
triadic
#2D267D #7D2D26 #267D2D
tetradic
#2D267D #7D264A #767D26 #267D59
square
#2D267D #7D264A #767D26 #267D59
split-complementary
#2D267D #7D5926 #4A7D26
monochromatic
#0B091F #1C184E #2D267D #3E34AC #5C53CB

Accessibility & contrast

On white

12.46
#2D267D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2D267D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D267D
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D267D#FFFFFF#000000##FFFFFF
##2D267D1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d267d;
/* rgb */ color: rgb(45, 38, 125);
/* oklch */ color: oklch(33.8% 0.141 279.3);
Tailwind
colors: {
  custom: {
    50: '#7061a3',
    500: '#2d267d',
    950: '#000000',
  },
}
SCSS
$custom: #2d267d;
$custom-light: #7061a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2d267d",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 125
  },
  "hsl": {
    "h": 244.828,
    "s": 53.374,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33771,
    "c": 0.14107,
    "h": 279.3
  },
  "luminance": 0.03425
}

Semantic roles & 50–950 ramp

primary
#2D267D
secondary
#A7AF50
accent
#DD4BD1
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D267D

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

Preview Lab → · Contrast checker → · Palette generator →

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