#2D308B#2D308B

#2D308B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.148 H 275.0°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#2D308B
RGBrgb(45, 48, 139)
HSLhsl(238, 51%, 36%)
HSVhsv(238, 68%, 55%)
CMYKcmyk(67.6%, 65.5%, 0%, 45.5%)
CIE-LABlab(25.37, 29.24, -51.04)
CIE-LCHlch(25.37, 58.82, 299.80°)
OKLaboklab(36.85% 0.0128 -0.1472)
OKLCHoklch(36.85% 0.148 275)
XYZxyz(6.7978, 4.5353, 24.9383)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D308B #8B882D
analogous
#2D5F8B #2D308B #592D8B
triadic
#2D308B #8B2D30 #308B2D
tetradic
#2D308B #8B2D5F #8B882D #2D8B59
square
#2D308B #8B2D5F #8B882D #2D8B59
split-complementary
#2D308B #8B592D #5F8B2D
monochromatic
#0F102F #1E205D #2D308B #3C40B9 #6569CD

Accessibility & contrast

On white

11.01
#2D308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2D308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D308B
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D308B#FFFFFF#000000##FFFFFF
##2D308B1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2d308b;
/* rgb */ color: rgb(45, 48, 139);
/* oklch */ color: oklch(36.9% 0.148 275.0);
Tailwind
colors: {
  custom: {
    50: '#7268ae',
    500: '#2d308b',
    950: '#000000',
  },
}
SCSS
$custom: #2d308b;
$custom-light: #7268ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2d308b",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 238.085,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36854,
    "c": 0.14777,
    "h": 275
  },
  "luminance": 0.04536
}

Semantic roles & 50–950 ramp

primary
#2D308B
secondary
#B4B160
accent
#D64DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D308B

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

Preview Lab → · Contrast checker → · Palette generator →

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