#2D267B#2D267B

#2D267B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.138 H 279.6°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#2D267B
RGBrgb(45, 38, 123)
HSLhsl(245, 53%, 32%)
HSVhsv(245, 69%, 48%)
CMYKcmyk(63.4%, 69.1%, 0%, 51.8%)
CIE-LABlab(21.48, 30.05, -47.34)
CIE-LCHlch(21.48, 56.07, 302.40°)
OKLaboklab(33.58% 0.023 -0.1364)
OKLCHoklch(33.58% 0.138 279.6)
XYZxyz(5.3493, 3.3738, 19.1044)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D267B #747B26
analogous
#264A7B #2D267B #58267B
triadic
#2D267B #7B2D26 #267B2D
tetradic
#2D267B #7B264A #747B26 #267B58
square
#2D267B #7B264A #747B26 #267B58
split-complementary
#2D267B #7B5826 #4A7B26
monochromatic
#0B091D #1C184C #2D267B #3E34AA #5C52CA

Accessibility & contrast

On white

12.54
#2D267B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D267B
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D267B#FFFFFF#000000##FFFFFF
##2D267B1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2d267b;
/* rgb */ color: rgb(45, 38, 123);
/* oklch */ color: oklch(33.6% 0.138 279.6);
Tailwind
colors: {
  custom: {
    50: '#7061a2',
    500: '#2d267b',
    950: '#000000',
  },
}
SCSS
$custom: #2d267b;
$custom-light: #7061a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d267b",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 123
  },
  "hsl": {
    "h": 244.941,
    "s": 52.795,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33579,
    "c": 0.13832,
    "h": 279.6
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#2D267B
secondary
#A5AD50
accent
#DC4CD0
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2D267B

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

Preview Lab → · Contrast checker → · Palette generator →

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