#2D307A#2D307A

#2D307A is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.3% C 0.124 H 276.3°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#2D307A
RGBrgb(45, 48, 122)
HSLhsl(238, 46%, 33%)
HSVhsv(238, 63%, 48%)
CMYKcmyk(63.1%, 60.7%, 0%, 52.2%)
CIE-LABlab(23.92, 23.07, -42.73)
CIE-LCHlch(23.92, 48.56, 298.36°)
OKLaboklab(35.34% 0.0135 -0.1228)
OKLCHoklch(35.34% 0.124 276.3)
XYZxyz(5.6509, 4.0765, 18.8976)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D307A #7A772D
analogous
#2D577A #2D307A #502D7A
triadic
#2D307A #7A2D30 #307A2D
tetradic
#2D307A #7A2D57 #7A772D #2D7A50
square
#2D307A #7A2D57 #7A772D #2D7A50
split-complementary
#2D307A #7A502D #577A2D
monochromatic
#0C0D21 #1D1E4D #2D307A #3D42A7 #5E62C4

Accessibility & contrast

On white

11.57
#2D307A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D307A
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D307A#FFFFFF#000000##FFFFFF
##2D307A1.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d307a;
/* rgb */ color: rgb(45, 48, 122);
/* oklch */ color: oklch(35.3% 0.124 276.3);
Tailwind
colors: {
  custom: {
    50: '#6f68a1',
    500: '#2d307a',
    950: '#000000',
  },
}
SCSS
$custom: #2d307a;
$custom-light: #6f68a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2d307a",
  "rgb": {
    "r": 45,
    "g": 48,
    "b": 122
  },
  "hsl": {
    "h": 237.662,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3534,
    "c": 0.12353,
    "h": 276.3
  },
  "luminance": 0.04077
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D307A

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

Preview Lab → · Contrast checker → · Palette generator →

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