#252F94#252F94

#252F94 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.0% C 0.163 H 271.2°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#252F94
RGBrgb(37, 47, 148)
HSLhsl(235, 60%, 36%)
HSVhsv(235, 75%, 58%)
CMYKcmyk(75%, 68.2%, 0%, 42%)
CIE-LABlab(25.45, 32.12, -56.49)
CIE-LCHlch(25.45, 64.98, 299.63°)
OKLaboklab(37.04% 0.0035 -0.1634)
OKLCHoklch(37.04% 0.163 271.2)
XYZxyz(7.1229, 4.5637, 28.5167)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#252F94 #948A25
analogous
#256794 #252F94 #532594
triadic
#252F94 #94252F #2F9425
tetradic
#252F94 #942567 #948A25 #259453
square
#252F94 #942567 #948A25 #259453
split-complementary
#252F94 #945325 #679425
monochromatic
#0D1032 #191F63 #252F94 #313FC5 #5D68D6

Accessibility & contrast

On white

10.98
#252F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#252F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #252F94
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##252F94#FFFFFF#000000##FFFFFF
##252F941.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004297
Deuteranopia (green-blind)
#003792
Tritanopia (blue-blind)
#004A5D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #252f94;
/* rgb */ color: rgb(37, 47, 148);
/* oklch */ color: oklch(37.0% 0.163 271.2);
Tailwind
colors: {
  custom: {
    50: '#7168b4',
    500: '#252f94',
    950: '#000000',
  },
}
SCSS
$custom: #252f94;
$custom-light: #7168b4;
$custom-dark: #000000;
JSON
{
  "hex": "#252f94",
  "rgb": {
    "r": 37,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 234.595,
    "s": 60,
    "l": 36.275
  },
  "oklch": {
    "l": 0.3704,
    "c": 0.16341,
    "h": 271.2
  },
  "luminance": 0.04564
}

Semantic roles & 50–950 ramp

primary
#252F94
secondary
#BBB359
accent
#D545E3
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #252F94

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

Preview Lab → · Contrast checker → · Palette generator →

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