#252F9E#252F9E

#252F9E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.177 H 270.8°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#252F9E
RGBrgb(37, 47, 158)
HSLhsl(235, 62%, 38%)
HSVhsv(235, 77%, 62%)
CMYKcmyk(76.6%, 70.3%, 0%, 38%)
CIE-LABlab(26.43, 35.76, -61.01)
CIE-LCHlch(26.43, 70.72, 300.38°)
OKLaboklab(38.05% 0.0024 -0.1766)
OKLCHoklch(38.05% 0.177 270.8)
XYZxyz(7.9489, 4.8941, 32.8669)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F9E #9E9425
analogous
#256B9E #252F9E #57259E
triadic
#252F9E #9E252F #2F9E25
tetradic
#252F9E #9E256B #9E9425 #259E57
square
#252F9E #9E256B #9E9425 #259E57
split-complementary
#252F9E #9E5725 #6B9E25
monochromatic
#0E113B #19206C #252F9E #313ECF #636DDA

Accessibility & contrast

On white

10.61
#252F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#252F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F9E
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F9E#FFFFFF#000000##FFFFFF
##252F9E1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #252f9e;
/* rgb */ color: rgb(37, 47, 158);
/* oklch */ color: oklch(38.0% 0.177 270.8);
Tailwind
colors: {
  custom: {
    50: '#7468bc',
    500: '#252f9e',
    950: '#000000',
  },
}
SCSS
$custom: #252f9e;
$custom-light: #7468bc;
$custom-dark: #000000;
JSON
{
  "hex": "#252f9e",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 235.041,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38045,
    "c": 0.17658,
    "h": 270.8
  },
  "luminance": 0.04895
}

Semantic roles & 50–950 ramp

primary
#252F9E
secondary
#C0B85F
accent
#D843E5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #252F9E

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

Preview Lab → · Contrast checker → · Palette generator →

#252F9E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva