#2D267A#2D267A

#2D267A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.137 H 279.7°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#2D267A
RGBrgb(45, 38, 122)
HSLhsl(245, 53%, 31%)
HSVhsv(245, 69%, 48%)
CMYKcmyk(63.1%, 68.9%, 0%, 52.2%)
CIE-LABlab(21.39, 29.70, -46.86)
CIE-LCHlch(21.39, 55.48, 302.37°)
OKLaboklab(33.48% 0.0232 -0.135)
OKLCHoklch(33.48% 0.137 279.7)
XYZxyz(5.2870, 3.3489, 18.7764)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D267A #737A26
analogous
#26497A #2D267A #57267A
triadic
#2D267A #7A2D26 #267A2D
tetradic
#2D267A #7A2649 #737A26 #267A57
square
#2D267A #7A2649 #737A26 #267A57
split-complementary
#2D267A #7A5726 #497A26
monochromatic
#0B091D #1C174B #2D267A #3E35A9 #5B51C9

Accessibility & contrast

On white

12.58
#2D267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2D267A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D267A
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D267A#FFFFFF#000000##FFFFFF
##2D267A1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#003C4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2d267a;
/* rgb */ color: rgb(45, 38, 122);
/* oklch */ color: oklch(33.5% 0.137 279.7);
Tailwind
colors: {
  custom: {
    50: '#7061a1',
    500: '#2d267a',
    950: '#000000',
  },
}
SCSS
$custom: #2d267a;
$custom-light: #7061a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d267a",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 245,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33484,
    "c": 0.13694,
    "h": 279.7
  },
  "luminance": 0.03349
}

Semantic roles & 50–950 ramp

primary
#2D267A
secondary
#A4AC50
accent
#DC4CD0
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D267A

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

Preview Lab → · Contrast checker → · Palette generator →

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