#2A258F#2A258F

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

Color values

HEX#2A258F
RGBrgb(42, 37, 143)
HSLhsl(243, 59%, 35%)
HSVhsv(243, 74%, 56%)
CMYKcmyk(70.6%, 74.1%, 0%, 43.9%)
CIE-LABlab(22.99, 37.16, -57.44)
CIE-LCHlch(22.99, 68.41, 302.90°)
OKLaboklab(35.2% 0.0164 -0.166)
OKLCHoklch(35.2% 0.167 275.6)
XYZxyz(6.5727, 3.7979, 26.3680)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A258F #8A8F25
analogous
#25558F #2A258F #5F258F
triadic
#2A258F #8F2A25 #258F2A
tetradic
#2A258F #8F2555 #8A8F25 #258F5F
square
#2A258F #8F2555 #8A8F25 #258F5F
split-complementary
#2A258F #8F5F25 #558F25
monochromatic
#0D0C2E #1C185E #2A258F #3832C0 #605AD4

Accessibility & contrast

On white

11.93
#2A258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A258F
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A258F#FFFFFF#000000##FFFFFF
##2A258F1.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a258f;
/* rgb */ color: rgb(42, 37, 143);
/* oklch */ color: oklch(35.2% 0.167 275.6);
Tailwind
colors: {
  custom: {
    50: '#7361b1',
    500: '#2a258f',
    950: '#000000',
  },
}
SCSS
$custom: #2a258f;
$custom-light: #7361b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a258f",
  "rgb": {
    "r": 42,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 242.83,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35201,
    "c": 0.16681,
    "h": 275.6
  },
  "luminance": 0.03799
}

Semantic roles & 50–950 ramp

primary
#2A258F
secondary
#B4B957
accent
#E246DB
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2A258F

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

Preview Lab → · Contrast checker → · Palette generator →

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