#2D268B#2D268B

#2D268B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.160 H 277.4°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#2D268B
RGBrgb(45, 38, 139)
HSLhsl(244, 57%, 35%)
HSVhsv(244, 73%, 55%)
CMYKcmyk(67.6%, 72.7%, 0%, 45.5%)
CIE-LABlab(23.02, 35.56, -54.88)
CIE-LCHlch(23.02, 65.40, 302.94°)
OKLaboklab(35.16% 0.0205 -0.1585)
OKLCHoklch(35.16% 0.16 277.4)
XYZxyz(6.4340, 3.8076, 24.8170)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D268B #848B26
analogous
#26528B #2D268B #5F268B
triadic
#2D268B #8B2D26 #268B2D
tetradic
#2D268B #8B2652 #848B26 #268B5F
square
#2D268B #8B2652 #848B26 #268B5F
split-complementary
#2D268B #8B5F26 #528B26
monochromatic
#0E0C2B #1D195B #2D268B #3D33BB #625AD2

Accessibility & contrast

On white

11.92
#2D268B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2D268B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D268B
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D268B#FFFFFF#000000##FFFFFF
##2D268B1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2d268b;
/* rgb */ color: rgb(45, 38, 139);
/* oklch */ color: oklch(35.2% 0.160 277.4);
Tailwind
colors: {
  custom: {
    50: '#7361ae',
    500: '#2d268b',
    950: '#000000',
  },
}
SCSS
$custom: #2d268b;
$custom-light: #7361ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d268b",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 139
  },
  "hsl": {
    "h": 244.158,
    "s": 57.062,
    "l": 34.706
  },
  "oklch": {
    "l": 0.3516,
    "c": 0.15979,
    "h": 277.4
  },
  "luminance": 0.03808
}

Semantic roles & 50–950 ramp

primary
#2D268B
secondary
#B0B756
accent
#E047D6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2D268B

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

Preview Lab → · Contrast checker → · Palette generator →

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