#2D307B#2D307B

#2D307B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.125 H 276.2°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#2D307B
RGBrgb(45, 48, 123)
HSLhsl(238, 46%, 33%)
HSVhsv(238, 63%, 48%)
CMYKcmyk(63.4%, 61%, 0%, 51.8%)
CIE-LABlab(24.00, 23.43, -43.23)
CIE-LCHlch(24.00, 49.17, 298.46°)
OKLaboklab(35.43% 0.0135 -0.1243)
OKLCHoklch(35.43% 0.125 276.2)
XYZxyz(5.7131, 4.1014, 19.2256)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D307B #7B782D
analogous
#2D577B #2D307B #512D7B
triadic
#2D307B #7B2D30 #307B2D
tetradic
#2D307B #7B2D57 #7B782D #2D7B51
square
#2D307B #7B2D57 #7B782D #2D7B51
split-complementary
#2D307B #7B512D #577B2D
monochromatic
#0C0D21 #1D1F4E #2D307B #3D41A8 #5E62C4

Accessibility & contrast

On white

11.54
#2D307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2D307B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D307B
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D307B#FFFFFF#000000##FFFFFF
##2D307B1.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2d307b;
/* rgb */ color: rgb(45, 48, 123);
/* oklch */ color: oklch(35.4% 0.125 276.2);
Tailwind
colors: {
  custom: {
    50: '#6f68a2',
    500: '#2d307b',
    950: '#000000',
  },
}
SCSS
$custom: #2d307b;
$custom-light: #6f68a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2d307b",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 237.692,
    "s": 46.429,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35425,
    "c": 0.12499,
    "h": 276.2
  },
  "luminance": 0.04102
}

Semantic roles & 50–950 ramp

primary
#2D307B
secondary
#ABA759
accent
#D152D6
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D307B

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

Preview Lab → · Contrast checker → · Palette generator →

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