#2D267E#2D267E

#2D267E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.142 H 279.1°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#2D267E
RGBrgb(45, 38, 126)
HSLhsl(245, 54%, 32%)
HSVhsv(245, 70%, 49%)
CMYKcmyk(64.3%, 69.8%, 0%, 50.6%)
CIE-LABlab(21.76, 31.09, -48.79)
CIE-LCHlch(21.76, 57.85, 302.51°)
OKLaboklab(33.87% 0.0226 -0.1406)
OKLCHoklch(33.87% 0.142 279.1)
XYZxyz(5.5400, 3.4501, 20.1086)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D267E #777E26
analogous
#264B7E #2D267E #59267E
triadic
#2D267E #7E2D26 #267E2D
tetradic
#2D267E #7E264B #777E26 #267E59
square
#2D267E #7E264B #777E26 #267E59
split-complementary
#2D267E #7E5926 #4B7E26
monochromatic
#0B0A20 #1C184F #2D267E #3E34AD #5D53CB

Accessibility & contrast

On white

12.43
#2D267E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D267E
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D267E#FFFFFF#000000##FFFFFF
##2D267E1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d267e;
/* rgb */ color: rgb(45, 38, 126);
/* oklch */ color: oklch(33.9% 0.142 279.1);
Tailwind
colors: {
  custom: {
    50: '#7061a4',
    500: '#2d267e',
    950: '#000000',
  },
}
SCSS
$custom: #2d267e;
$custom-light: #7061a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2d267e",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 126
  },
  "hsl": {
    "h": 244.773,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33868,
    "c": 0.14244,
    "h": 279.1
  },
  "luminance": 0.0345
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D267E

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

Preview Lab → · Contrast checker → · Palette generator →

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