#2D268E#2D268E

#2D268E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.164 H 277.0°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#2D268E
RGBrgb(45, 38, 142)
HSLhsl(244, 58%, 35%)
HSVhsv(244, 73%, 56%)
CMYKcmyk(68.3%, 73.2%, 0%, 44.3%)
CIE-LABlab(23.33, 36.58, -56.26)
CIE-LCHlch(23.33, 67.11, 303.04°)
OKLaboklab(35.47% 0.02 -0.1625)
OKLCHoklch(35.47% 0.164 277)
XYZxyz(6.6562, 3.8965, 25.9873)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D268E #878E26
analogous
#26538E #2D268E #61268E
triadic
#2D268E #8E2D26 #268E2D
tetradic
#2D268E #8E2653 #878E26 #268E61
square
#2D268E #8E2653 #878E26 #268E61
split-complementary
#2D268E #8E6126 #538E26
monochromatic
#0E0C2D #1E195E #2D268E #3C33BE #635BD3

Accessibility & contrast

On white

11.80
#2D268E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2D268E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D268E
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D268E#FFFFFF#000000##FFFFFF
##2D268E1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#00338C
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2d268e;
/* rgb */ color: rgb(45, 38, 142);
/* oklch */ color: oklch(35.5% 0.164 277.0);
Tailwind
colors: {
  custom: {
    50: '#7462b0',
    500: '#2d268e',
    950: '#000000',
  },
}
SCSS
$custom: #2d268e;
$custom-light: #7462b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2d268e",
  "rgb": {
    "r": 45,
    "g": 38,
    "b": 142
  },
  "hsl": {
    "h": 244.038,
    "s": 57.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35466,
    "c": 0.1637,
    "h": 277
  },
  "luminance": 0.03897
}

Semantic roles & 50–950 ramp

primary
#2D268E
secondary
#B2B858
accent
#E147D7
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2D268E

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

Preview Lab → · Contrast checker → · Palette generator →

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